A) Non-exclusive Checkboxes.B) Radio buttons.C) Choice.D) List.
Latest Answer: Answer is D ...
What is the result of executing the following Java class: import java.awt.*; public class FrameTest extends Frame {public FrameTest() {add (new Button("First"));add (new Button("Second"));add (new Button("Third"));pack();setVisible(true);}public static void main(String args []) {new FrameTest();}} Select from the following options:
A) Only the "third" button is displayed.B) A runtime exception is generated (no layout manager specified).C) Only the "first" button is displayed.D) Only the "second" button
A) The event-inheritance model has replaced the event-delegation model.B) The event-inheritance model is more efficient than the event-delegation model.C) The event-delegation model uses event listeners
Latest Answer: C ...
When two or more objects are added as listeners for the same event, which listener is first invoked to handle the event?
A) The first object that was added as listener.B) The last object that was added as listener.C) There is no way to determine which listener will be invoked first.D) It is impossible to have more than one
A) The MouseListener interface defines methods for handling mouse clicks.B) The MouseMotionListener interface defines methods for handling mouse clicks.C) The MouseClickListener interface defines methods
Latest Answer: The following options are correct:A) TrueExplanation: MouseListener Interface defines the methods for mouse clicks, mouse pressed etc. Hence this is true.B) TrueExplanation: The MouseMotionListener defines methods of MouseClicks as well as mouse movement, ...
A) A component may handle its own events by adding itself as an event listener.B) A component may handle its own events by overriding its event-dispatching method.C) A component may not handle oits own
Which of the following option(s) doesn’t correctly describe the Applet’s Life Cycle methods?
A) init( ) method - Can be called when an applet is first loaded.B) start( ) method - Can be called each time an applet is started.C) paint( ) method - Can be called when the applet is minimized or refreshed.D)
A) TrueB) False
Latest Answer: True.java.awt.Object->java.awt.Component->java.awt.Panel->java.applet.Applet.So all applets are subclasses of applet itself. ...
A) TrueB) False
Latest Answer: It is essential to import the java.applet.* packakage while creating applet,while using controls like label,button etc. within Applet it is essential to import java.awt.* package ...
A) The Applet classB) AppletContext Interface.C) AppletStub InterfaceD) AudioClip Interface
Latest Answer: All of the aboveI looked it up in Javadocs hence it is right ...
View page << Previous 2 3 4 5 [6] 7 8 Next >>

Go Top