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
How does class forname work in java?
Explain throw keyword in java?
Is java a prime method?
What is exception hierarchy in java?
Write the algorithm to check the number non-leaf nodes in a tree.
What is a native method in java programming?
What is the effect of keeping a constructor private?
explain multi-threading in java?
What are different data types?
What is the purpose of a transient variable?
How we can generate random numbers in java?
What is a qualifier in a sentence?
Is string thread safe in java?
What are keywords in programming?
What is the purpose of main function in java?