IntelliJ Java IDE
The moose likes Mock Exam Errata and the fly likes Access Modifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Mock Exam Errata
Reply Bookmark "Access Modifiers" Watch "Access Modifiers" New topic
Author

Access Modifiers

rajani peddi
Ranch Hand

Joined: Nov 27, 2000
Posts: 73
hi,

Top level classes can be declared as public or they can be default. They can't be protected. Why is this so? When they can have default access modifier(friendly) which is more restricted than protected why can't they have their access modifier as protected?
rajani
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
I am moving this to Programmer Certification Study as it is more suited to that area as opposed to Mock exam erratas.
Bill
 
 
subject: Access Modifiers
 
Threads others viewed
Why classes cannot have protected access modifier?
friendly modifier
Class modifiers
two calss in one singel .java file?
Access Modifiers
IntelliJ Java IDE