Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Anonymous class 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 class" Watch "Anonymous class" New topic

Anonymous class


Joined: Oct 12, 2000
Posts: 2
An instance of An Anonymous inner class can only be created in it outer class .(True/False)? Why?
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
False, Anonymouse classes are created in methods and these can for methods of inner classes or outer classes.
Consider Paul's rocket mass heater.
subject: Anonymous class
Similar Threads
Anonymous class ???
Is it possible to create a class like this
object of an interface? Hows possible
What is this technique called?
Passing an object to a method.