A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Is this correct?
Joined: Mar 05, 2003
May 28, 2003 11:43:00
An instance of an Anonymous inner class can only be created in it's outer class.
Joined: Sep 29, 2002
May 28, 2003 12:22:00
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
Joined: May 16, 2003
May 28, 2003 17:36:00
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?
subject: Is this correct?
question about anonymous class
Reg. Inner classes : Valiveru's exam
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015