Question
Can a top level class be private or protected?
Answer
No, a top level class can not be private or protected. It can have either “public” or no modifier.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.