Which containers use a FlowLayout as their default layout?
-
Panel and Applet
-
Panel and Frame
-
Frame and Applet
-
Panel and Jframe
A
Correct answer
Explanation
Panel and Applet containers use FlowLayout as their default layout manager in AWT. FlowLayout arranges components in a left-to-right flow, similar to text in a paragraph. Frame and Window use BorderLayout by default, while JFrame uses BorderLayout by default in Swing.