Can a top level class be private or protected? Ans. No. A top level class cannot be private or protected. It can have either "public" or no modifier. If it does not have a modifier it is supposed to have a default access. If a top level class is declared as private the compiler...
See more
Download the Study24x7 App, so you can connect and collaborate.