• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.applet.Applet

 
Willie Toma
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statemens about the ancestry of the class java.applet.Applet is correct?
A) An Applet is a kind of Container.
B) An Applet is a kind of Window.
C) An applet is a kind of Component.
D) An Applet is a kind of Panel.
Answer:
B is an incorrect statement, and thus the correct answer. Windows extends Contatiner directly, whereas Applet extends Panel, which extends Container, which extends Component.
Is this worded incorrectly?(the bold)
Panel is a subclass of Container because it extends it. Is it safe to say that 'A Panel is a kind of Container'.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question should read :

Which of the following statemens about the ancestry of the class java.applet.Applet is incorrect?


-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!