• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Marcus Green new exam feedback

 
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic