This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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!
 
Consider Paul's rocket mass heater.
 
subject: anonymous classes
 
Similar Threads
Annonymous class
anonymous class doubt
Anonymous classes
How to change Title?
Anonymous classes