This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes anonymous classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "anonymous classes" Watch "anonymous classes" New topic
Author

anonymous classes

Neelima Chandran
Greenhorn

Joined: Jul 12, 2005
Posts: 12
'A static reference variable can reference an instance of an anonymous class' - couldn't understand this one....can someone explain?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Here's a trivial example:


Does that help?


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

Joined: Jul 12, 2005
Posts: 12
yeep! should've known that. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: anonymous classes