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 the difference between class & structure?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
How a string is stored in memory?
What are design patterns and please explain?
v-model life cycle
java Technical questions asked by JPMC
What is classname class in java?
What is the functionality of the stub?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
How do I get a substring?
How many types of java are there?
Why is method overloading not possible by changing the return type in java?
what is the constructor and how many types of constructors are used in java?
What loop means?
What does it mean to be immutable?