aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K&B: Classes can have only public or default access Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "K&B: Classes can have only public or default access" Watch "K&B: Classes can have only public or default access" New topic
Author

K&B: Classes can have only public or default access

Mohammad Khan
Ranch Hand

Joined: Sep 23, 2008
Posts: 37
in K&B (310-065)
page: 68
Chapter 1: Declaration and Access Control
TWO-MINUTE DRILL

states that "Classes can have only pubic or default access"
I think, this is true for outer classes but not for inner classes.

Thanks,
Mohammad
M Srilatha
Ranch Hand

Joined: Aug 27, 2008
Posts: 137
Yes you are right!
If you see the section on Class Declarations and Modifiers in Chapter 1, it is clearly mentioned that inner classes will be discussed in a later chapter. And in chapter 1, only outer classes are considered.


Thanks,<br />Srilatha M
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: K&B: Classes can have only public or default access
 
Similar Threads
Protected Class--> Error
Class access modifiers
Polymorphic method invocations
Public class
Default Constructor