Question 1 of 25
Hints left: 3
Q1
In Java event handling, what is the purpose of the `MouseEvent` class?
Q2
In Java event handling, what is the purpose of the `MouseWheelEvent` class?
Q3
What is the purpose of the `WindowEvent` class in Java event handling?
Q4
What is an event listener in Java?
Q5
Which package in Java contains classes for event handling?
Q6
What is the purpose of the `ActionCommand` in Java event handling?
Q7
What is the purpose of the `ItemEvent` class in Java event handling?
Q8
In Java event handling, which method is used to handle focus gained events?
Q9
In Java event handling, which method is used to handle item events for a checkbox?
Q10
Which method is used to handle mouse wheel events in Java event handling?
Q11
In Java, which method is used to register an event listener with an event source?
Q12
Which method is used to handle mouse drag events in Java event handling?
Q13
In Java event handling, which event is generated when a button is clicked?
Q14
What is the purpose of the `FocusEvent` class in Java event handling?
Q15
In Java event handling, what is the purpose of the `KeyEvent` class?
Q16
Which method is used to handle mouse clicks in Java event handling?
Q17
In Java event handling, which method is used to handle window closing events?
Q18
What is the purpose of the `MouseListener` interface in Java event handling?
Q19
In Java, how do you specify that an event should trigger a particular method for event handling?
Q20
In Java event handling, which interface is used for handling window events like closing a window?
Q21
What is the purpose of the `KeyEventDispatcher` interface in Java event handling?
Q22
Which event listener interface is used for handling action events in Java?
Q23
In Java event handling, what is the purpose of the `WindowAdapter` class?
Q24
In Java event handling, what is the purpose of the `getSource()` method of the `ActionEvent` class?
Q25
What is the purpose of the `ActionEvent` class in Java event handling?