Abstract Window Toolkit (AWT) Question:

What is source and listener?

Tweet Share WhatsApp

Answer:

A source is an object that generates an event. This occurs when the internal state of that object changes in some way. A listener is an object that is notified when an event occurs. It has two major requirements. First, it must have been registered with a source to receive notifications about specific event. Second, it must implement necessary methods to receive and process these notifications.

Download AWT PDF Read All 41 AWT Questions
Previous QuestionNext Question
What is java applet?What is the difference between choice and list?