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 an empty class? What functionality does it offer in Java?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
What is google full form?
Which class is the superclass for all the classes?
What is the difference between multitasking and multithreading in Java
How to create a thread in java?
What do you understand by soft reference?
Is java a prime method?
Which package is used for pattern matching with regular expressions?
What is lazy initialization in java?
What is an immutable class?
What is keyword and identifier?
What does @param args mean in java?
How does system arraycopy work in java?
Is there any difference between nested classes and inner classes?