Meaningless Drivel is fun!*
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
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
 
 
subject: AWT question