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 is the different between get and post?

0 Answers  


What is the root class for all Java classes?

8 Answers   IBM, Infosys,


What is the latest java version?

0 Answers  


What do you understand by a Static Variable?

0 Answers   CGI,


State the difference between strings and arrays.

0 Answers   Syntel, Visa,






Is java a utf 8 string?

0 Answers  


describe synchronization in respect to multithreading? : Java thread

0 Answers  


"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)

3 Answers  


Can a class be final?

0 Answers  


Which package is always imported by default?

0 Answers  


What are default methods ?

0 Answers  


What are teh sub-classes of a component class?

2 Answers  


Categories