This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K & B: Inner Classes Self-Test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K & B: Inner Classes Self-Test" Watch "K & B: Inner Classes Self-Test" New topic
Author

K & B: Inner Classes Self-Test

Venkat Sidh
Ranch Hand

Joined: Sep 30, 2006
Posts: 61
I'm puzzled over the following question (Pg 659, Qn#3),



Answer is E but I thought it should be D,E since there's no difference b/w D and E except for System.out.println
Any ideas?
[ October 27, 2006: Message edited by: Venkat Sidh ]
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Take a careful look again at the syntax in D.
Venkat Sidh
Ranch Hand

Joined: Sep 30, 2006
Posts: 61
got it {} instead of {}

Thanks.
 
 
subject: K & B: Inner Classes Self-Test
 
Similar Threads
Annonymous Inner Class
Inner Class
K&B Chapter 8: Inner Classes - Self Test
Inner Classes Mock question doubt
Anonymous Inner Class