Multiple choice technology programming languages

Default layout for frame

  1. Flow Layout

  2. GridLayout

  3. Card Layout

  4. BorderLayout

  5. GridBagLayout

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

In Java's AWT and Swing, the default layout manager for Frame and JFrame is BorderLayout. Other options like FlowLayout (default for Panel/Applet), GridLayout, and CardLayout must be explicitly set using the setLayout method.