0
What if we declare method Inside a main method in java
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/
0
Tysm