Multiple choice

Which of the following methods is/are not present in the Button class in Java?

  1. processEvent(Event e)

  2. getActionCommand()

  3. setLable(String txt)

  4. setActionCommand(String cmd)

  5. getAccessibleContext()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct choice. The method is spelled incorrectly, the correct spelling is “setLabel(String txt)”, not “setLable(String txt)”.