多项选择题
Which statements concerning the event model of the AWT are true?()
A.At most one listener of each type can be registered with a component.
B.Mouse motion listeners can be registered on a List instance.
C.There exists a class named ContainerEvent in package java.awt.event.
D.There exists a class named MouseMotionEvent in package java.awt.event.
E.There exists a class named ActionAdapter in package java.awt.event.
相关考题
-
单项选择题
What will be the appearance of an applet with the following init() method? public void init() { add(new Button("hello")); }
A.Nothing appears in the applet.
B.A button will cover the whole area of the applet.
C.A button will appear in the top left corner of the applet.
D.A button will appear, centered in the top region of the applet.
E.A button will appear in the center of the applet. -
多项选择题
Whichmodifiersandreturntypeswouldbevalidinthedeclarationofaworkingmain()methodforaJavastandaloneapplication?()
A.private
B.final
C.static
D.int
E.abstract -
单项选择题
Whichstatementsconcerningtheswitchconstructaretrue?()
A.All switch statements must have a default label.
B.There must be exactly one label for each code segment in a switch statement.
C.The keyword continue can never occur within the body of a switch statement.
D.No case label may follow a default label within a single switch statement.
E.A character literal can be used as a value for a case label.
