Can we call a main method from some other method?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Oxford University, Lives in London, UK
The main() method in a java program takes a String array argument. If you do not use the variable args inside of main() you could just pass null to it. Otherwise you would need to pass a String array to the method. However, you should not be calling the main() method from inside your application.Oct 2, 2013
2023-06-14 06:42:32
评论(499)
Helpful(122)
Helpful
Helpful(2)

Zoe Davis
QuesHub.com delivers expert answers and knowledge to you.
The main() method in a java program takes a String array argument. If you do not use the variable args inside of main() you could just pass null to it. Otherwise you would need to pass a String array to the method. However, you should not be calling the main() method from inside your application.Oct 2, 2013