Home » JAVA Programming » Java Basic » Question
  1. Which of these methods will respond when you click any button by mouse?
    1. mousePressed()
    2. mouseClicked()
    3. mouseEntered()
    4. All of above
    5. 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().



Your comments will be displayed only after manual approval.