+ 1

Is it possible to run the program without main function?

5th Feb 2018, 11:36 AM
Manoj Chandran R
Manoj Chandran R - avatar
4 Answers
+ 4
No, the main function is where the code that runs when the program starts goes, so it is necessary for it to do anything.
5th Feb 2018, 12:48 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 3
No. When you run a Java program it start executing from the main() method, that means main() method is the starting point for execution. So if you don't provide the starting point how the code can run.
5th Feb 2018, 3:51 PM
RAJESH SINHA
RAJESH SINHA - avatar
+ 2
no, it is not possible to run a program without main () because execution of any program starts from main ()
12th Feb 2018, 1:31 PM
DEVIREDDY . PAVITHRA
DEVIREDDY . PAVITHRA - avatar
0
ok.... Guys then how it's possible in applet program without main() function ?
24th Jun 2018, 12:21 AM
Manoj Chandran R
Manoj Chandran R - avatar