0

What if we declare method Inside a main method in java

3rd Sep 2020, 5:40 AM
Shivam Rawal
5 Respostas
+ 4
Java doesn't allow that! Only python allows that! You can make a function outside the main method and call it!
3rd Sep 2020, 6:34 AM
Namit Jain
Namit Jain - avatar
+ 2
Try, and you got result!!!!))
3rd Sep 2020, 5:59 AM
george
george - avatar
0
Error?
3rd Sep 2020, 6:01 AM
Shivam Rawal
0
I just need to know y it throws error
3rd Sep 2020, 6:01 AM
Shivam Rawal
0
Tysm Namit share some good resources for learning coding
3rd Sep 2020, 10:45 AM
Shivam Rawal