This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi VR,
a,b,c,d are correct. because a container can have only components and all a,b,c,d are components but menuItem is a menuComponent which can't be added to a container

regards
deekasha
Erin Waite
Greenhorn

Joined: Jan 24, 2002
Posts: 6
I think the answers a, b, c and e are correct.
d is incrrect because a frame is a top-level window and a top-level window cannot be incorporated into other components.
e is correct because a menu-bar can be attached to a Frame object which is a container, a menu-bar can contain pull-down menus and MenuItem objects can be added to menus.

Originally posted by VR:
Which of the following may container can have?
a. container
b. component
c. applet
d. frame
e. menuItem

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AWT question