This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java.awt question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "java.awt question" Watch "java.awt question" New topic

java.awt question

Chris Mathews
Ranch Hand

Joined: Jan 08, 2001
Posts: 46
Which of the following are subclasses of Container?

a) ComboBox

b) Event

c) ScrollPane

d) TextArea

e) Slider

Please answer.
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
comboBox abd Event are not
Scott Kiel

Joined: Jan 05, 2001
Posts: 15
inheritance hierarchy available in api documentation at:
Pratap Reddy
Ranch Hand

Joined: Jan 05, 2001
Posts: 36
Chris , In my opinion right answer is: (C). Since ComboBox , TextArea and Slider subclass of components and Event is subclass of Object.
I agree. Here's the link:
subject: java.awt question
It's not a secret anymore!