Home > DeveloperSection > Interviews > What if the static modifier is removed from the signature of the main method?

Posted on    July-20-2015 4:05 AM

 Java Java 
 1 Answer(s)
  541  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    July-20-2015 4:05 AM

Program compiles. But at runtime throws an error "NoSuchMethodError". This is the case before Java 1. 6 version but for Java 7 and onwards it will throw a Launch error : Selection does not contain a main type

Don't want to miss updates? Please click the below button!

Follow MindStick