my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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:
subject: anonymous classes
Similar Threads
Annonymous class
anonymous class doubt
Anonymous classes
How to change Title?
Anonymous classes