aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes some questions of anonymous inner class 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 "some questions of anonymous inner class" Watch "some questions of anonymous inner class" New topic
Author

some questions of anonymous inner class

arden liu
Greenhorn

Joined: Dec 09, 2004
Posts: 9
77. which statement is true?
A. An anonymous inner class may be declared as final
B. An anonymous inner class can be declared as private
C. An anonymous inner class can implement mutiple interfaces
D. An anonymous inner class can access final variables in any enclosing scope
E. Construction of an instance of a static inner class requires an instance of the encloing outer class

the answer is D
Why? could you give me a detailed explanation?
Thanks a lot.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
What's the source of the question, please?


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
arden liu
Greenhorn

Joined: Dec 09, 2004
Posts: 9
i just find it from one website.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: some questions of anonymous inner class