This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes enclosing class in a construcotr valid or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "enclosing class in a construcotr valid or not?" Watch "enclosing class in a construcotr valid or not?" New topic
Author

enclosing class in a construcotr valid or not?

nagaraj raja
Ranch Hand

Joined: Aug 06, 2005
Posts: 36
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
ctest object may only be created within _test() method because its a local inner class


SCJA, SCJP5.0, SCBCD, SCWCD
vinuharan haran
Ranch Hand

Joined: Feb 26, 2005
Posts: 64
Hi,
Here is a way to call the method declared in the innerclass in the constructor.

It is perfectly legal to create a local inner class in the constructor.
Hope this helps...
thanks,
vinu.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: enclosing class in a construcotr valid or not?
 
Similar Threads
selectManyListbox Issue
Finding a language setting or locale of the keyboard
i implemented interface in anonymous class then it shows compiler error why
Inner Class Names
JSF selectManyListbox Issue?