![]() Related Questions A) java.awt.AWTEventB) java.awt.EventC) java.util.eventObjectD) javax.swing.ObjectExplanation: The java.awt.AWTEvent class is the highest-level class in the AWT event class hierarchy. Latest Answer : This is kind of a dicy question:But in Java the event heirarchy goes like :java.lang.object -> java.util.EventObject -> java.awt.AWTEvent.So the java.util.EventObject is the superclass of all events.But java.awt.AWTEvent is the superclass of all ... A) A Canvas objectB) A Graphics objectC) An Image objectD) A paint object Latest Answer : Answer : > B) A Graphic Objecte.g public void paint(Graphics g) { g.drawString(20,20,"Hello"); } ... A) CanvasB) ImageC) FrameD) Graphics Latest Answer : Canvasimage ... A) North, South, East, WestB) Assign a row/column grid referenceC) Pass a X/Y percentage parameter to the add methodD) Do nothing, the FlowLayout will position the component Latest Answer : D ... A) The default layout manager for an Applet is FlowLayoutB) The default layout manager for an application is FlowLayoutC) A layout manager must be assigned to an Applet before the setSize method is calledD) Latest Answer : Answer A) ... A) setReadOnly()B) setEditOnly()C) setEditable()D) setTextReadOnly() Latest Answer : setEditable(false) ... A) drawLine(int, int, int, int)B) drawImage(Image, int, int, ImageObserver)C) drawString(String, int, int)D) add(Component);E) setVisible(boolean);F) setLayout(Object); Latest Answer : Answer : > A),B),C) ... 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) 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
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||