+ 1

Is your program will execute without main method in java ?

Core Java

16th Sep 2017, 11:52 AM
Tejas Benke
Tejas Benke - avatar
3 Answers
+ 12
The JVM searches the main () function to start execution so it will give an error
16th Sep 2017, 12:16 PM
P R
P R - avatar
+ 3
Your program will need the main thread in order to work.
16th Sep 2017, 12:09 PM
Ryan Ward
Ryan Ward - avatar