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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
anonymous class and static
Jini Varghese
Ranch Hand
Posts: 58
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
True or False.
An anonymous class can be static.
We can have anonymous class inside a static block, right?. So will this statement be true?.
Thanks.
Ravindra Mohan
Ranch Hand
Posts: 216
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Jini,
Definitely you can have a static anonymous class within a static
block , the only
restriction
is that it cant be DECLARED AS STATIC .. Hope you got the catch...
Ravindra Mohan.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
anonymous inner class
a question about anonymous question
InnerClass tell me the ans
anonymous class doubt
Local and Anonymous class can be static or non-static
More...