Hi,
Which of the following AWT components can have a menu, either as a menu bar or pop-up menu, attached to it? (Exam Cram page.no 229, q.no 2)
a. java.awt.Frame
b. java.awt.Window
c. java.awt.Applet
d. java.awt.Panel
Answer shown as a,b,c and d.
But in RHE (page no. 341, q.no 8)
Which of the following may contain a menu bar?
a. A panel
b. A frame
c. An
applet d. A menu bar
e. A menu
Answer shown as only a Frame may contain menu bar.
So, which one is correct?
regards
yojana