WHAT IF THE STATIC MODIFIER IS REMOVED FROM THE SIGNATURE OF THE MAIN METHOD?

Samuel Fernandes

Total Post:38

Points:190
Posted by  Samuel Fernandes
Java 
 576  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What if the static modifier is removed from the signature of the main method?

    Program compiles. But at runtime throws an error "NoSuchMethodError".

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!