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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Is this correct?" Watch "Is this correct?" New topic
Author

Is this correct?

Yuan Ye
Ranch Hand

Joined: Mar 05, 2003
Posts: 172
An instance of an Anonymous inner class can only be created in it's outer class.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
An anonymous class can also be defined as an argument to a method or somewhere inside the method.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Brian Joseph
Ranch Hand

Joined: May 16, 2003
Posts: 160
The question is confusing. When the question reads "in the outer class", is this just referring to "class scope", meaning within the class definition but outside of any method definition blocks?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this correct?