Styrow.dev
Question 229 of 247
Java Topic: General medium

What will happen if static modifier is removed from the signature of the main method?

Question

What will happen if static modifier is removed from the signature of the main method?

Answer

Program throws “NoSuchMethodError” error at runtime .