This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "classes" Watch "classes" New topic
Author

classes

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?