Multiple choice

Which of the following is a valid signature of setEnabled() method of JButton class in java swing?

  1. setEnabled(String s)

  2. setEnabled(int a)

  3. setEnabled(ActionListener a)

  4. setEnabled(boolean b)

  5. none of the above

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

This is the valid method signature of setEnabled() method of JButton class.