A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
i need some explanation..
Joined: Aug 20, 2001
Oct 22, 2001 20:26:00
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??)
High Plains Drifter
Joined: Oct 25, 2000
Oct 23, 2001 00:10:00
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..
can a class be static?
Static Nested Classes
doubt on top level nested classes -from velumurugan periyasmays site
Inner classes -doubt on static
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014