Which of these methods can be used to obtain the coordinates of a mouse?
A. getPoint()
B. getCoordinates()
C. getMouseXY()
D. getMouseCordinates()
Answer:A
Which of these methods can be used to obtain the coordinates of a mouse?
A. getPoint() B. getCoordinates() C. getMouseXY() D. getMouseCordinates()
Explanation: 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.