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

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
Java 
 1728  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    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!