Answer Posted / niranjanravi
An Anonymous class is a class which is defined at run time
without having any name and it is instantiated and declared
at the same place.
Syntax:
new class classname(){}
new interface interfacename(){}
Keyword extends and implements are usedin this class.
It is always implicitly final.
It is never static or final.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is thread? What are the high-level thread states? : Java thread
Is oracle charging for java?
Is 64bit faster than 32 bit?
When do we need to use internal iteration? When do we need to use external iteration?
How do you achieve singleton?
What is thread safe java?
What is difference between == and === in js?
Does importing a package imports its sub-packages as well in java?
Why do we use variables?
Difference between method overloading and method overriding in java ?
How are the elements of a gridbaglayout organized in java programming?
Does apple use java?
What restrictions are placed on method overloading?
Explain about the select method with an example?
Why can't we make a class private in java?