Answer Posted / selvi
Java Language rule are such that we must implement all the
methods of an interface even if we put them into empty
braces.i.e. we must override all the methods declared in
the interface.
But we can create our classes as subclasses of one of
the adapter classes, then we need to override only some of
the methods we need. i.e, An adapter classes provide empty
implementation of all methods declared in an EventListener
interface.
| Is This Answer Correct ? | 191 Yes | 27 No |
Post New Answer View All Answers
What is the difference between normal report & matrix report?
What is boolean strategy?
Explain public static void main(string args[]).
Is list thread safe in java?
Why charat is used in java?
Can we have 2 main methods in java class?
What are static variables and functions?
What is super in java?
Write a method that will remove given character from the string?
What is the symbol for space?
What is return type in java?
Explain the differences between abstraction and encapsulation?
What 5 doubled?
What is private protected in java?
Is 0 an even number?