wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Inner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Inner " Watch "Inner " New topic
Author

Inner

josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216
Check my answers

Which statement is true about a non-static inner class?
It must implement an interface. //f
It is accessible from any other class. //true
It can only be instantiated in the enclosing class. //f
It must be final if it is declared in a method scope. //f
It can access private instance variables in the enclosing object.//t
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
You are correct.
maha anna
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
"It is accessible from any other class."
It MAY be accessible from any other class, or it may not if it's not declared public. I think FALSE is a better answer.


"I'm not back." - Bill Harding, Twister
 
jQuery in Action, 2nd edition
 
subject: Inner
 
Similar Threads
Inner class... how and why ?
Inner and outer class instances
Inner class mult choice
Inner
Interview questions