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 
 671  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".

      Modified On Mar-27-2018 10:59:50 PM

Answer

NEWSLETTER

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