Originally posted by satya5:
Another URL with lots of one liners to remember for the exam
From a previous post by Hari P.
A couple addenda to Ajith's list: static member classes used to be called "top-level nested classes", and were considered top-level, at least according to the original Nested Classes Specification. However this never really caught on, and under the JLS 2nd edition they are no longer considered top-level. I don't think any exam questions ever considered them top-level (or at least, they don't ask about it), so you're safe here.
However, the exam does apparently consider static member classes to be inner classes, even though this is clearly contradicted by the Nested Classes Specification and the JLS2. They don't make a big deal about it - they just call them "static inner classes". So, for the exam, pretend they're inner classes, and remember that in the real world, they aren't.
Originally posted by Ajith Kallambella:
[B]Here is a summary of types of classes
Hope this helps!
[This message has been edited by Ajith Kallambella (edited July 13, 2000).][/B]
* if any sub class is in different package then baseClassObject.memVar can not be accessed in class body of subclass, that can be accessed by subClassObject only . [IMP]
Originally posted by aymen esawey:
i just stopped at this by ravish:
i can't understand what it means!! any help will be appreciated
1)INNER CLASSES CAN EXTEND ONLY I INTERFACE