0 votes
in JAVA by (30.8k points)
Which of the following is an immediate subclass of the Panel class?

i) Applet class

ii) Window class

iii) Frame class

iv) Dialog class

1 Answer

0 votes
by (19.9k points)

(i) Applet class

Reason: According to the class hierarchy of Java Swing, the Applet class is the direct subclass of the Panel class. You can go through the link, (https://www.javatpoint.com/java-swing) to deeply understand the class hierarchy diagram. The Panel class and Window class are the child classes of the Container class, and Frame and Dialog classes are the subclasses of the Window class.

Related questions