wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: http://aspose.com/file-tools
subject: classes
Similar Threads
Enum member variable access
access specifier
Protected Access Specifier
protected Vs default access modifiers?
anyone could explain this?