This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes JXam Mock Exam Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "JXam Mock Exam Question" Watch "JXam Mock Exam Question" New topic
Author

JXam Mock Exam Question

Jerson Chua
Ranch Hand

Joined: Feb 08, 2000
Posts: 68
Only Frames can contain menu bars or pull-down menus.
My answer is true but the given answer is false. Please confirm the answer. Why?
Thank you...
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Jerson,
Only Frames can contain menu bars or pull-down menus.
The answer given as 'false' is correct. Because menu bars are attached to ONLY frames. But pull-down menus can be attached to menuBar or another pulldown menu. Refer to the API doc. For Menu
.add(MenuItem item) is there. Since 'Menu' is also a 'MenuItem' we can always create sub-menus under another menu. If the qstn would have been ONLY the 1st half Only frams can contain menuBars then I think what you say is correct.
regds
maha anna
Jerson Chua
Ranch Hand

Joined: Feb 08, 2000
Posts: 68
Thanx maha...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JXam Mock Exam Question
 
Similar Threads
mock question
about EVAL_BODY_BUFFERED problem?
MAC OS and WIN NT
a) is the answer?
Without ROOT directory