Multiple choice technology programming languages

The BorderLayout class provides static fields for...

  1. Introducing new methods.

  2. Adding components to specific areas of a container.

  3. Starting an applet.

  4. Specifying font size and color.

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

BorderLayout is a layout manager in Java AWT that divides a container into five regions: North, South, East, West, and Center. The static fields (NORTH, SOUTH, EAST, WEST, CENTER) are constants used to specify where components should be added. It simplifies GUI positioning by providing predefined areas.

AI explanation

BorderLayout defines constants like NORTH, SOUTH, EAST, WEST, and CENTER that you pass when adding a component to a container, telling the layout manager which region of the container that component should occupy. It's purely a layout/positioning tool and has nothing to do with introducing methods, starting applets, or specifying fonts and colors.