你可能喜欢
单项选择题
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.
单项选择题
A.The code will fail to compile.
B.0 will be written to the standard output.
C.1 will be written to the standard output.
D.2 will be written to the standard output.
E.3 will be written to the standard output.
多项选择题
A.Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.
B.Member variables of the outer instance can never be referred to using only the variable name within the inner instance.
C.More than one inner instance can be associated with the same outer instance.
D.All variables from the outer instance that should be accessible in the inner instance must be declared final.
E.A class that is declared final cannot have any inner classes.
多项选择题
A.Instances of class Thread have a method called notify().
B.A call to the method notify() will wake the thread that currently owns the monitor of the object.
C.The method notify() is synchronized.
D.The method notifyAll() is defined in class Thread.
E.When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.
多项选择题
A.Definition a.
B.Definition b.
C.Definition c.
D.Definition d.
E.Definition e.
单项选择题
A.The program will fail to compile.
B.The program will not terminate normally.
C.The program will write 10 to the standard output.
D.The program will write 0 to the standard output.
E.The program will write 9 to the standard output.
多项选择题
A.win.setLayout(new BorderLayout()); win.add(but);
B.win.setLayout(new GridLayout(1, 1)); win.add(but);
C.win.setLayout(new BorderLayout()); win.add(but, BorderLayout.CENTER);
D.win.add(but);
E.win.setLayout(new FlowLayout()); win.add(but);
单项选择题
A.The rectangle drawn will have a total width of 5 pixels.
B.The rectangle drawn will have a total height of 6 pixels.
C.The rectangle drawn will have a total width of 10 pixels.
D.The rectangle drawn will have a total height of 11 pixels.