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 java util?
What is a numeric literal?
what happens when a thread cannot acquire a lock on an object? : Java thread
Explain the inheritance?
Explain implementation and how is it different from conversion?
When is update method called?
What is rule of accessibility in java?
What are new features introduced with java 8 ?
What are static methods?
What is the collections api in java programming?
How do you sort in descending order in java using collections sort?
What is Mutex (Mutual Exclusion Object) ?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What are java threads?