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 does this mean java?
What does isempty () do in java?
Why put method is used?
What is meant by object?
How do you delete a list in java?
Explain some best practices you would apply while using collection in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What type of variable is gender?
What state is a thread in when it is executing?
Why spring singleton is not thread safe?
What is the file type?
What is final class?
What are the concepts of 'OOPS'?
What is the argument in java?
Difference between java and javascript