Multiple choice java core java

What is the default layout manager for a panel?

  1. 1.BorderLayout

  2. 2.Ther is no layout

  3. 3.FlowLayout

  4. 4.GridLayout

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

In Java AWT, the default layout manager for a Panel or Applet is FlowLayout. For a Window, Frame, or Dialog, the default layout manager is BorderLayout.