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
Win a copy of
Spring Boot in Practice
this week in the
Spring
forum!
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
Tim Cooke
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Liutauras Vilda
Henry Wong
Devaka Cooray
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Al Hobbs
Carey Brown
Bartenders:
Piet Souris
Mikalai Zaikin
Himai Minh
Forum:
Programmer Certification (OCPJP)
About constructor of anonymous class!
jaman tai
Ranch Hand
Posts: 37
posted 16 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 16 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 16 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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
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...