1.

Which of these methods is defined in MouseMotionAdapter class?(a) mouseDragged()(b) mousePressed()(c) mouseReleased()(d) mouseClicked()I have been asked this question in final exam.This is a very interesting question from Event Listeners Interfaces topic in chapter Event Handling of Java

Answer» CORRECT OPTION is (a) mouseDragged()

Best EXPLANATION: The MouseMotionAdapter class DEFINES 2 methods – mouseDragged() and mouseMoved.


Discussion

No Comment Found

Related InterviewSolutions