Question
Can we put more than one public class in single java file?
Answer
No, we cannot. Because, when we declare a class as public, then we have to save the java file with same name as the name of the public class.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.