adplus-dvertising
frame-decoration

Question

What is a listener in context to event handling?

a.

A listener is a variable that is notified when an event occurs

b.

A listener is a object that is notified when an event occurs

c.

A listener is a method that is notified when an event occurs

d.

None of the mentioned

Posted under Java Programming

Answer: (b).A listener is a object that is notified when an event occurs

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is a listener in context to event handling?

Similar Questions

Discover Related MCQs

Q. Event class is defined in which of these libraries?

Q. Which of these methods can be used to determine the type of event?

Q. Which of these class is super class of all the events?

Q. Which of these events will be notified if scroll bar is manipulated?

Q. Which of these events will be generated if we close an applet’s window?

Q. Which of these events is generated when a button is pressed?

Q. Which of these methods can be used to obtain the command name for invoking ActionEvent object?

Q. Which of these are integer constants defined in ActionEvent class?

Q. Which of these methods can be used to know which key is pressed?

Q. Which of these events is generated by scroll bar?

Q. Which of these methods can be used to determine the type of adjustment event?

Q. Which of these methods can be used to know the degree of adjustment made by the user?

Q. Which of these constant value will change when the button at the end of scroll bar was clicked to increase its value?

Q. Which of these events is generated when the size of an event is changed?

Q. Which of these events is generated when the component is added or removed?

Q. Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?

Q. Which of these methods can be used to get reference to a component that was removed from a container?

Q. Which of these are integer constants of ComponentEvent class?

Q. Which of these events is generated when computer gains or loses input focus?

Q. FocusEvent is subclass of which of these classes?