Question
Can we put more than one main method in single class?
Answer
Yes we can, by overloading the main method. But JVM will by default run the main method with string array as an argument.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.