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 an interface in java?
Can a lock be acquired on a class in java programming?
How do you convert an int to a string in java?
What is method reference in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Explain naming conventions for packages?
What is string [] args?
Explain garbage collection in java?
What is an image buffer?
What’s meant by anonymous class?
How do you remove all elements from an arraylist in java?
Why for each loop is used?
Explain the concept of proper inheritance?
What is methods and methodology?
What is set string?