+ 1
Can we call main method in java?
2 Answers
+ 1
Yes, you could call the main() function inside of main() function but you need to use the concept of VAR ARG (Variable Argument).
Just use â˘â˘â˘
instead of String args[]
in main function.
Triple Dots indicate variable argument.
0
From inside main() or some other function? You could but why? If you have some recursive code you could put it in a seperate method and call that.