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 .
What will happen if static modifier is removed from the signature of the main method?
Program throws “NoSuchMethodError” error at runtime .