Multiple choice technology programming languages

Which class is the immediate superclass of the Container class?

  1. Frame

  2. Component

  3. Public

  4. Super

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

In Java's AWT hierarchy, java.awt.Container directly extends java.awt.Component, making Component its immediate superclass. Other options like Frame are subclasses of Container, whereas Public is an access modifier and Super is a keyword, neither of which represent Java classes.