0

What if we declare method Inside a main method in java

3rd Sep 2020, 5:40 AM
Shivam Rawal
2 Answers
+ 2
You mean nested methods ? Java does not support “directly” nested methods but you can achive it using different technique. Check the link given below for further reference :) https://www.geeksforgeeks.org/method-within-method-in-java/
3rd Sep 2020, 4:47 PM
Kuber Acharya
Kuber Acharya - avatar
0
Tysm
4th Sep 2020, 4:01 AM
Shivam Rawal