posted 23 years ago
Hi, Morgan, Manav
Your example is a good one for understanding the top-level nested class, but it is not right one to undertsand the current question which is about local inner class.
As a local inner class, just as its name hints us, is a local variable or at least, we can take them as local variable. Based this rules, we can undersatnd the question easily. A local variable cannot have any accessibility including public, private, so 1,2 are wrong. static keyword is not permitted to modifier an local inner class. so no.3 is also wrong.
Chapter 7 in Khalid's book decipted these concepts concisely and correctly, plz refer to it.
regds
George
[This message has been edited by George Toronto (edited January 04, 2001).]