Multiple choice

Which of the following methods is not present in the AbstractButton class in java?

  1. getMargin()

  2. getText()

  3. getIconTextGap()

  4. getLabel()

  5. getMnemonic()

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

This is the correct choice. getLabel() method was earlier defined in the AbstractButton class, but now this method has been deprecated and is replaced by getText() method. This method is used to get the button's text.