-
Which of these methods will respond when you click any button by mouse?
-
- mousePressed()
- mouseClicked()
- mouseEntered()
- All of above
- None of these
Correct Option: D
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().