Questions
Which method of life cycle of an applet is used to perform clean-up operation?
- start() method
- stop() method
- destroy() method
- none of these
Which of the following methods of life cycle of an applet initilizes variables, and add components like buttons and check boxes to the applet?
- init() method
- start() method
- stop() method
- destroy() method
Which method is called when the applet loses focus?
- init() method
- start() method
- stop() method
- destroy() method
Which of the following methods is the first to be called when an applet is loaded into memory of computer?
- init() method
- stop() method
- destroy() method
- none of these
Which of the following methods of the painting is called to clear the screen and call the paint() method?
- update() method
- repaint() method
- paint() method
- none of these
______________ method is used by the browser when user moves to another page.
- init()
- destroy()
- stop()
- none of these
Which method of the painting is called when you want the applet area to be redrawn?
- paint() method
- repaint() method
- update() method
- none of these
Which event is generated when a component is added to or removed from container?
- Item Event
- Container Event
- Adjustment Event
- None of these
Which method of ItemEvent can be used to obtain reference to the ItemSelectable objects that generate an event?
- getItem()
- getItemSelectable()
- getStateChange()
- none of these
Which event is generated when a component gains or loses input focus?
- Focus Event
- Keyboard Event
- Text Event
- Mouse Event
In Java Programming Language, which classes implement the corresponding listener interfaces containing more than one method?
- Adapter classes
- Inner classes
- Anonymous classes
- Window classes
_________________ are the classes that do not need a name since you don't need them anywhere else in the program.
- Inner classes
- Adapter classes
- Anonymous classes
- None of these
___________ are classes that are declared within other classes. They are also known as nested classes and provide additional clarity to the program.
- Inner classes
- Adapter classes
- Anonymous classes
- Text classes
_____________ is the back bone of JDBC architecture.
- ODBC
- JDBC
- JDBC Driver Manager
- ZOBC
______________ is generated by text fields and text areas when characters are entered by a user or program.
- Focus Event
- Item Event
- Text Event
- None of these
Which method of MouseEvent obtains the number of mouse clicks for the event?
- translatePoint()
- getClickCount()
- isPopupTrigger()
- getitem()
Which component of an event is the object that generates the event?
- Event object
- Event source
- Event handler
- None of these
_________ is generated when a button is pressed, a list item is double-clicked or a menu item is selected.
- Action Event
- Adjustment Event
- Component Event
- Container Event
Which of the following events is generated when the size, position or visibility of a component is changed?
- Adjustment Event
- Component Event
- Container Event
- Item Event
Which event is generated when a checkbox or a list item is clicked or when a check menu item is selected or deselected?
- Container Event
- Component Event
- Focus Event
- Item Event
Which of the following user interfaces defines how should components be arranged in a container?
- Component
- Container
- Layout manager
- None of these