• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.applet.Applet

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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'.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic