File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Green new exam feedback

 
Vad Fogel
Ranch Hand
Posts: 504
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
Barkat Mardhani
Ranch Hand
Posts: 787
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vad,
I guess you are technically right. As you and I know it auther is only talking about method variables in this sentence.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic