jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "anonymous classes" Watch "anonymous classes" New topic

anonymous classes

Neelima Chandran

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

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
It's not a secret anymore!