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 i need some explanation.. 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 "i need some explanation.." Watch "i need some explanation.." New topic
Author

i need some explanation..

Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
Classes can be nested to any depth. Top-level static classes can be nested only within other static top-level classes or interfaces. (what this means??)

If the inner class is sub-classed outside of the outer class (only possible with top-level nested classes) (why??)
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Translation: static inner classes cannot be nested to any depth, and are an exception to the rule.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
 
subject: i need some explanation..
 
Similar Threads
Static Nested Classes
can a class be static?
Inner classes -doubt on static
static class
doubt on top level nested classes -from velumurugan periyasmays site