Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Programmer Certification (OCPJP)
About constructor of anonymous class!
jaman tai
Ranch Hand
Posts: 37
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can we say there is no constructor in anonymous class? What about the initializer {} ?
A Kumar
Ranch Hand
Posts: 980
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Check this out...
https://coderanch.com/t/400491/java/java/Non-static-initializer-vs-Constructor
Regards
Santana Iyer
Ranch Hand
Posts: 335
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
anonymous class means they do not have name so there can not be constructor instead one has to use initializer instead of constructor.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
does an anonymous inner class have constructor?
Anonymous constructors
Anonymous class....
how does the argument list of an anonymous class works?
Can JPanel's paint() use different Graphics2D objects?
More...