InterviewSolution
Saved Bookmarks
| 1. |
A Person Says That He Compiled A Java Class Successfully Without Even Having A Main Method In It? Is It Possible? |
|
Answer» main method is an entry point of Java CLASS and is required for EXECUTION of the PROGRAM HOWEVER; a class gets compiled successfully even if it doesn’t have a main method. It can’t be RUN though. main method is an entry point of Java class and is required for execution of the program however; a class gets compiled successfully even if it doesn’t have a main method. It can’t be run though. |
|