Which of the follow class declarations results in a compiler error?
The answer is 3,4,5,6,7,8,9
My Doubt:
I tried compiling this code and the error comes out as 2,3,5,7,8,9. However the
Java 2 Certification guide by Heller & Simon's say that "Classes declared in methods are private to the method and cannot be marked with any access modifier;neither can they be marked static".
Can someone tell me what access modifiers are allowed for classes
1.that are nested inner classes (member classes)
2.inner classes within methods.
[Dan added UBB codes to format the code block.]
[ March 21, 2003: Message edited by: Dan Chisholm ]