File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "classes" Watch "classes" New topic


nitin sharma
Ranch Hand

Joined: Feb 24, 2001
Posts: 290
can we have two toplevel classes,one with protected access specifier and the other with the public access specifier?.
public is very much possible, please tell me about the other class.
nachiket deshpande
Ranch Hand

Joined: Oct 06, 2000
Posts: 114
No a toplevel class can not be protected.
it can be public,final, abstract or no access modifier.but cant be protected.
I agree. Here's the link:
subject: classes
It's not a secret anymore!