Question: what is difference between adapter class and listener?
Answer: What are the differences between an event listener interface and an event adapter class in Java? An EventListener interface defines the methods that must be implemented by an event handler for a particular kind of an event whereas an Event Adapter class provides a default implementation of an EventListener interface.