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
Name component subclasses that support painting in java programming?
What is string [] java?
What is canonical name in java?
What are predefined functions?
Is hashset ordered java?
How does multithreading take place on a computer with a single cpu?
How to do encapsulation in java?
What is a byte array?
What is the size of an array?
Is arraylist a class in java?
What does a void function return?
What is string and example?
Why do we need singleton class?
Explain the difference between an object-oriented programming language and object-based programming language?
Give few difference between constructor and method?