0

Can i create method under main mathod? Can I use it in another class?

16th May 2020, 3:06 PM
Imon
Imon - avatar
2 Respuestas
+ 2
No, in Java it is not possible to for a method to have another nested method inside. You can have a nested (inner) class within a class, but not inside a method either.
16th May 2020, 3:24 PM
Tibor Santa
Tibor Santa - avatar