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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.
 
wood burning stoves
 
subject: classes