This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes About constructor of anonymous class! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "About constructor of anonymous class!" Watch "About constructor of anonymous class!" New topic
Author

About constructor of anonymous class!

jaman tai
Ranch Hand

Joined: Sep 26, 2005
Posts: 37
Can we say there is no constructor in anonymous class? What about the initializer {} ?
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

Check this out...


http://www.coderanch.com/t/400491/java/java/Non-static-initializer-vs-Constructor

Regards
Santana Iyer
Ranch Hand

Joined: Jun 13, 2005
Posts: 335
anonymous class means they do not have name so there can not be constructor instead one has to use initializer instead of constructor.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: About constructor of anonymous class!
 
Similar Threads
how does the argument list of an anonymous class works?
Anonymous class....
does an anonymous inner class have constructor?
Anonymous constructors
Can JPanel's paint() use different Graphics2D objects?