Multiple choice

Which of the following methods is present in the CardLayout class in Java?

  1. removeLayoutComponent(Component c)

  2. removeComponent(Component c)

  3. maxLayoutSize(Container c)

  4. preferredSize(Container c)

  5. addLayoutComponent(Component c, Object constraints)

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

This is the correct choice. removeLayoutComponent(Component c) method is present in the CardLayout class in Java.