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 primitives objects?
What is the difference between menuitem and checkboxmenu item?
What is the difference between a break statement and a continue statement?
What is variable and example?
What do you mean by chromounits in java8?
How to find the largest value from the given array.
Can you call one constructor from another if a class has multiple constructors?
Can we declare the static variables and methods in an abstract class?
What is a numeric digit?
Tell me how many ways are there to initialise an integer with a constant.
What is function declaration?
What is import java util arraylist?
Explain the difference between private, public, package and protected in java?
What is tcp ip in java?
Write a function to print Fibonacci series and Tribonacci series?