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 parameter in a function?
How do you generate random numbers in java?
Explain notifyall() method of object class ?
What is use of static in java?
What is the static block?
List types of storage classes in java?
What is the memory leak in java?
Explain static nested classes ?
What is passing parameters in java?
Write an algorithm for quick sort?
Explain the scope or life time of class variables or static variables?
What do you mean by aggregation?
What exactly is a .class file?
What is a protected class in java?
what is interface in java? Explain