Q.

Which of these methods in KeyEvent class can be used to know which key is pressed?

A. getKeyCode()
B. getModifier()
C. getActionKey()
D. getActionEvent()
Answer» A. getKeyCode()
1.8k
0
Do you find this helpful?
10

View all MCQs in

Java Programming

Discussion

No comments yet