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 .
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.