Which of the following is an immediate subclass of the Panel class?
A. Applet class
B. Window class
C. Frame class
D. Dialog class
Answer:A
Which of the following is an immediate subclass of the Panel class?
A. Applet class B. Window class C. Frame class D. Dialog class
Explanation: 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.