AWT Questions:
This topic is part of SCJP 1.2 exam but not SCJP 1.4 exam.
- Which of the following classes are derived from the Container class. Select the four correct answers.
- Component
- Panel
- java.applet.Applet
- Dialog
- Frame
- MenuComponent
- Which of the following classes are derived from the Component class. Select the four correct answers.
- Container
- Window
- List
- MenuItem
- Choice
- Name the class used to represent a GUI application window, which is optionally resizable and can have a title bar, an icon, and menus. Select the one correct answer.
- Window
- Panel
- Dialog
- Frame
- Which abstract class is the super class of all menu related classes.
- Which of these classes can be added to a Frame component. Select the three correct answers.
- Menu
- Button
- PopupMenu
- Window
- List
- Which class can be used to represent a checkbox with a textual label that can appear in a menu. Select the one correct answer.
- MenuBar
- MenuItem
- CheckboxMenuItem
- Menu
- CheckBox
- Which of these classes can be added to any Container class, using the add method defined in Container class. Select the two correct answers.
- Button
- CheckboxMenuItem
- Menu
- Canvas
Answers to questions on AWT
- b, c, d, e
- a, b, c, e
- d
- MenuComponent
- b, c, e
- c
- a, d