Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

What are listeners in java and explain ?

Answers were Sorted based on User's Feedback

What are listeners in java and explain ?..

Answer / raman

A listener is called when the user does something to the user
interface that causes an event. Altho these events usually
come from the user interface.

Named Inner Class Listeners -
Anonymous Inner Class Listeners -
Top-level Listeners -
Action and AbstractAction -
External Listeners -
Subclassing a component and overriding processActionEvent().

Is This Answer Correct ?    1 Yes 1 No

What are listeners in java and explain ?..

Answer / raman

Twelve types of event are used in Java AWT. These are as
follows :
1. ActionEvent
2. AdjustmentEvent
3. ComponentEvent
4. ContainerEvent
5. FocusEvent
6. InputEvent
7. ItemEvent
8. KeyEvent
9. MouseEvent
10. PaintEvent
11. TextEvent
12. WindowEvent

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

What are java threads?

0 Answers  

For which statements we use a label?

3 Answers   Wipro,

In real time project which driver did u use? What is the main functionality of the Prepared Statement?

3 Answers   Photon,

How do u provide security in java

3 Answers  

What is the difference between a scrollbar and a scrollpane?

0 Answers  

What is use of functional interface in java 8? Explain

0 Answers  

How many objects are created when we create String class object using new operator?

9 Answers   Mind Tree,

Can you have an inner class inside a method and what variables can you access?

2 Answers  

Explain aggregation in java?

0 Answers  

What is final int?

0 Answers  

What data structures are used to perform recursion?

0 Answers   Akamai Technologies,

Can a set contain duplicates?

0 Answers