Vidyalelo
Java Programming · all questions

Java Event Handling
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

75

Questions

3/4

Page

Pick an option on a question to see the right answer and solution.

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

Select an option to see the answer and solution.

Which of these methods are used to register a mouse motion listener?

Select an option to see the answer and solution.

Which of these events is generated when the window is closed?

Select an option to see the answer and solution.

Which of these packages contains all the classes and methods required for even handling in Java?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which of these methods can be used to know the type of focus change?

Select an option to see the answer and solution.

Which of these methods will be invoked if a character is entered?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which of these methods is defined in MouseMotionAdapter class?

Select an option to see the answer and solution.

Which of these events will be generated if we close an applet's window?

Select an option to see the answer and solution.

MouseEvent is subclass of which of these classes?

Select an option to see the answer and solution.

Event class is defined in which of these libraries?

Select an option to see the answer and solution.

Which of these events is generated by scroll bar?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which of these methods can be used to change location of an event?

Select an option to see the answer and solution.

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

Select an option to see the answer and solution.

Which of these methods is used to get x coordinate of the mouse?

Select an option to see the answer and solution.

Which of these interfaces handles the event when a component is added to a container?

Select an option to see the answer and solution.