Spread the love

Abstract Interface EventListener in Java

Spread the love

Abstract Interface EventListener in Java

In order for instances of a class to receive events, the class must implement the EventListener interface. It is a semantic interface, meaning that it declares no methods. Classes do not normally implement the EventListener interface directly, but instead, implement an interface that extends EventListener.

Prior to Java 1.1, events could only be delivered to AWT components. Java 1.1 introduces a new event model that allows events to be delivered to any object that implements a listener interface and registers to receive events from a particular source.

The structure of the interface EventListener is given by

public abstract interface java.util.EventListener {
}




Spread the love
READ  Class CharArrayWriter in Java
READ  List Concept Simplified In Java
Animesh Chatterjeehttps://techtravelhub.com/
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

Related Articles

Learn How to Use Jacoco Java code Coverage

Introduction to Jacoco Jacoco provides a wide range of coverage(analysis of instructions,...

Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recent Posts

Learn Quickly About DevOps Tools in a Fast and Efficient Manner

Introduction to DevOps tools DevOps tools are a collection of...

How to Collaborate between Development and Operations Team Fast and Effectively

Collaborate between Development and Operations Teams are the key...

Learn How to Use Jacoco Java code Coverage

Introduction to Jacoco Jacoco provides a wide range of coverage(analysis...

EDITOR PICKS


Spread the love