Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.awt question

 
Chris Mathews
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following are subclasses of Container?

a) ComboBox

b) Event

c) ScrollPane

d) TextArea

e) Slider

Please answer.
 
Fred Abbot
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
comboBox abd Event are not
 
Scott Kiel
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scrollpane
inheritance hierarchy available in api documentation at: http://java.sun.com/j2se/1.3/docs/api/index.html
 
Pratap Reddy
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris , In my opinion right answer is: (C). Since ComboBox , TextArea and Slider subclass of components and Event is subclass of Object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic