This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
(#104) an inner class has free access to ALL member data of its enclosing (outer) class. Answer: true An inner class has a special relationship and can see even private member data of the outer class. But, what about a static member class, which can only access static members? I answered false.
[ May 01, 2003: Message edited by: Karin Paola Illuminate ]
I not only use all the brains that I have, but all that I can borrow. [Laurence J. Peter]
Lawrence Chettiar
Ranch Hand
Joined: Apr 10, 2003
Posts: 62
posted
0
Hi Karin, If you see thru the JLS "Inner classes may inherit static members that are not compile-time constants even though they may not declare them. Nested classes that are not inner classes may declare static members freely, in accordance with the usual rules of the Java programming language. Member interfaces (�8.5) are always implicitly static so they are never considered to be inner classes. " Which clearly indicates that a static class is not a inner class. its a member class same as the interface defined within a class (member interface)