InterviewSolution
Saved Bookmarks
| 1. |
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» The correct answer is (d) all of the mentioned Best 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(). |
|