0

Can we execute a program without main method?

20th Aug 2016, 9:14 AM
KAMESH ARAVIND P
KAMESH ARAVIND P - avatar
5 Answers
+ 1
no we cannot execute our program without main method as it is the starting point of our program
20th Aug 2016, 9:28 AM
Mansi Sharma
Mansi Sharma - avatar
+ 1
yes u can ,but u have to take help of other class which has main method... tricky question in interview
24th Aug 2016, 11:38 AM
shridhar metraskar
shridhar metraskar - avatar
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.
20th Aug 2016, 1:58 PM
rajat kumar raicha
rajat kumar raicha - avatar
0
you can but by making objects of that class. like you can use bluej or other IDE for it.
20th Aug 2016, 5:34 PM
Satyam Abhishek Karn
Satyam Abhishek Karn - avatar
- 1
no
20th Aug 2016, 9:22 AM
sai reddy