Your response was Not Correct
Which of the following statements are true of a method local inner class?
Incorrect options are shown by strikethrough, any options you chose are marked by a tick
1 It has access to all members of its enclosing class
2 It can only access final variables of its enclosing method
3 It can be marked as static
4 It can only access final members of its enclosing class
You selected 1 option
The Correct Answer is
1) It has access to all members of its enclosing class
2) It can only access final variables of its enclosing method
There are no restrictions on on what a method local inner class can access from the enclosing class, though it may only access final members of its enclosing method.
I thought option 2 eliminates option 1, so maybe the
word only is redundant.
[ October 17, 2003: Message edited by: Vad Fogel ]