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
Are there structures in java?
what is mena by object block any what is the use of that
What is flag in python?
What are the types of java languages?
What is protected in java?
What is size of int in java?
Which number is denoted by leading zero in java?
Can we execute a program without main() method?
What is the difference between Java and C++?
Explain the difference between arraylist and linkedlist in java?
Can we restart a thread already started in java?
Can constructor be inherited?
Why webdriver is an interface?
What are the steps in the jdbc connection?
What is difference between hashset and hashmap in java?