Which of these methods will respond when you click any button by mouse?
A. mouseClicked()
B. mouseEntered()
C. mousePressed()
D. All of the mentioned
Answer:A
Which of these methods will respond when you click any button by mouse?
A. mouseClicked() B. mouseEntered() C. mousePressed() D. All of the mentioned
Explanation: when we click a button, first we enter the region of button hence mouseEntered() method responds then we press the button which leads to respond from mouseClicked() and mousePressed().