This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread 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 Soft Skills this week in the Jobs Discussion 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