File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Inner " Watch "Inner " New topic


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

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
I agree. Here's the link:
subject: Inner
jQuery in Action, 3rd edition