Multiple choice

Which of the following is called the Container class in Abstract Window Toolkit (AWT) in Java?

  1. It is an abstract superclass of AWT components.

  2. It is a subclass of Component class and is used to hold the other components.

  3. It is a top level window with a title and a border.

  4. It is a top level window with a title and a border and is used to take input from the user.

  5. None of the above

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

Yes, this is called the Container class in AWT hierarchy.