+ 1
How is this a runtime exception the code should not even compile
3 Antworten
+ 2
Program compiles fine. But at run time it can't find main method. so runtime exception. That's why it should be public .
+ 2
Put your link in the description, not in the question area. It doesn't work.
+ 1
Program compiles well but while execution it will search for main method
Since the method mentioned in program looks like main but it is not main method