0
Can we execute a program without main method?
5 Answers
+ 1
no we cannot execute our program without main method as it is the starting point of our program
+ 1
yes u can ,but u have to take help of other class which has main method... tricky question in interview
0
since everything in the world has a starting point. and since java is a oop language ,so it recognises the main method as the starting point for execution of a program.
0
you can but by making objects of that class.
like you can use bluej or other IDE for it.
- 1
no