This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes AWT question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "AWT question" Watch "AWT question" New topic
Author

AWT question

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Which of the following may container can have?
a. container
b. component
c. applet
d. frame
e. menuItem
Can please someone answer this?
Thanks in advance.
VR
sanjana narayanan
Ranch Hand

Joined: Nov 25, 2003
Posts: 142
The answers are a,b,c,d. Inheritance relationship between menuItem & Object is like this:
Object---->MenuComponent----->MenuItem
Whereas for a,b,c,d :
Object------> Component------>Container--->a,b,c,d

Sanjana
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks, Sanjana
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AWT question