Home » JAVA Programming » Java Basic » Question
  1. Which of these methods can be used to obtain the coordinates of a mouse?
    1. getCoordinates()
    2. getMouseXY()
    3. getPoint()
    4. getMouseCordinates()
    5. None of these
Correct Option: C

getPoint() method can be used to obtain coordinates of a mouse, alternatively we can use getX() and getY() methods for x and y coordinates of mouse respectively.



Your comments will be displayed only after manual approval.