Answer Posted / rimjhim
it is a local inner class without any name.
it is instantiated at the time of declaration and must be
extended by a class or implemented by an interface.
new [class name](argument list){anonymous class body};
overridden functions can be declared in this calss and it
can have only one new method inside it.more than one can
not be called anywhere.
using dot operator we can call that new function.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a priority queue java?
What is a flag value?
How does hashset work in java?
What is mysql driver class name?
Is static a keyword in java?
Can java hashmap have duplicate keys?
Explain JMS in detail.
What is the final keyword?
What are the procedures?
Can list contain null in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
What are the three parts of a lambda expression? What is the type of lambda expression?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
what is comparable and comparator interface?
What is object-oriented paradigm?