stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Event-driven Programming Flashcards | StudBud
Explore
/
Event-driven Programming
Event-driven Programming
5 terms
·
StudBud Administration
·
135 plays
A Quiz! to test on #Java #event-driven programming concepts.
Flashcards
5 cards
F
Practice quiz
P
Host live
L
Questions
5
Answers
1
What is the least number of methods a class needs to define when implementing MouseListener?
1
0
3
5
2
What is the method for handling a mouse release event in the MouseListener interface?
mouseReleased(MouseEvent)
mouseRelease(MouseEvent)
mouseUp(MouseEvent)
releaseMouse(MouseEvent)
3
What interface should a class implement for listening to a mouse click event?
MousePressListener
MouseListener
MouseClickListener
MouseMotionListener
4
A JFrame is created by
main()
. What is the output when the mouse moves inside it continuously?
AAA ...
A
None of the above
ABABAB ...
5
A JFrame is created by
main()
. What is the output on the console when we double click on it?
ACBACB
AABBCC
AACCBB
ABCABC