InterviewSolution
Saved Bookmarks
| 1. |
What happens if the static modifier is not included in the main method signature in Java? |
|
Answer» There wouldn't be any COMPILATION error. But then the program is run, since the JVM CANT map the main METHOD SIGNATURE, the code throws “NoSuchMethodError” error at the RUNTIME. |
|