Multiple choice

The ____ layout stores the components in the form of a stack, one over the other.

  1. flow

  2. grid bag

  3. border

  4. card

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

CardLayout is a layout manager that stacks components like a deck of cards, with only one component visible at a time. Components are added sequentially and can be navigated using next(), previous(), or first()/last() methods, making it ideal for wizard-style interfaces or tabbed panels.