posted 24 years ago
Hi Nirmala,
Do you mean that we CAN add an applet to a Container? How can we do this? I thought that answer A (applet) is right and D (menu) is not right, because according to Exam Cram Ch.11 p.220:
Adding menus to an application requires a class that implements the MenuContainer interface. The classes in the java.awt package that implement MenuContainer are Component, Frame, Menu, and MenuBar, so practically anything on the screen can host a menu.
Now, Container is a subclass of Component. So, shouldn't Container be capable of hosting a menu?
Thanks,
Aman