IBM's Certification exam tool has stumped me on the following. (Unless their answer is an error). Please post any alternative answers.
First, here is what I think. I believe only answer "C" is correct, because:
A)
Applet doesn't implement the ContainerListener interface (no componentAdded() or componentRemoved() methods)
B) Applet extends from Panel, not Frame
C) Applet extends indirectly from Component; Container extends directly from Component, Panel extends from Container, and Applet extends directly from Panel.
D) Applet doesn't impelement the Runnable interface since it ain't got no run()
E) none of the above is wrong since (I think!) C is correct.
Now that you know what I think, here is the question:
-----------------------------------------------------
Applets implement behavior in the container class because Applets:
MULTIPLE CHOICE
[] (A) Implement the ContainerListener interface
[] (B) Extend the Frame class
[] (C) Indirectly extend the Component class
[] (D) Implement the Runnable interface
[] (E) None of the above