Java AWT Interview Questions and Answers - 4

Question: 16

What is meant by Controls?

Controls are components that allow a user to interact with your application.

Question: 17

What is a layout manager?

A layout manager is an object that is used to organize components in a container.

Question: 18

Which containers use a Border layout as their default layout?

Window, Frame and Dialog classes use a Border Layout as their layout.

Question: 19

What are the subclasses of the Container class?

The container class has three major subclasses. They are

Window,

Panel,

ScrollPane

Question: 20

Which method is method to set the layout of a container?

setLayout ()

Related Questions