File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: anonymous classes