Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner classes

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
i've this question:

Isn't the final variable c accessible on line 9??Clear my doubts ..plz.
 
vinuharan haran
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i think all the variables except d can be referenced at line 9.
-vinu.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tested it, All but d are visible.
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too gave that answer,all except d....but to my bewilderment the answer was only 'e'.It was the mock test available at www.javacamp.org.But I should tell the level of the test was really high and I recommend it for all you guys preparing for scjp1.4 too.
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got one more bug on this test,for this question:

I compiled and saw voloxo was correct.So,Friends take note of this.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic