单项选择题X 纠错
A. finished
B. Compilation fails.
C. An AssertionError is thrown.
D. An AssertionError is thrown and finished is output.
你可能喜欢
单项选择题
A. 4,4
B. 4,5
C. 5,4
D. 5,5
E. Compilation fails.
单项选择题
A.Compilation fails.
B. “odd” will always be output.
C. “even” will always be output.
D. “odd” will be output for odd values of x, and “even” for even values.
E. “even” will be output for add values of x, and “odd” for even values.
单项选择题
A. Just after line 13.
B. Just after line 14.
C. Just after line 15.
D. Just after line 16 (that is, as the method returns).
多项选择题
A. The default constructor initializes method variables.
B. The default constructor has the same access as its class.
C. The default constructor invoked the no-arg constructor of the superclass.
D. If a class lacks a no-arg constructor, the compiler always creates a default constructor.
E. The compiler creates a default constructor only when there are no other constructors for the class.
多项选择题
A. Line 15 causes a stack overflow.
B. An exception is thrown at runtime.
C. The object referenced by a is eligible for garbage collection.
D. The object referenced by b is eligible for garbage collection.
E. The object referenced by a is not eligible for garbage collection.
F. The object referenced by b is not eligible for garbage collection.
单项选择题
A. AB
B. BC
C. ABC
D. BCD
E. Compilation fails.
多项选择题
A. public class Thing { }
B. public class Thing { public Thing() {} }
C. public class Thing { public Thing(void) {} }
D. public class Thing { public Thing(String s) {} }
E. public class Thing { public void Thing() {} public Thing(String s) {} }
多项选择题
A. void methoda();
B. public double methoda();
C. public final double methoda();
D. static void methoda(double d1);
E. protected void methoda(double d1);
单项选择题
A. AC
B. BD
C. ACD
D. ABCD
E. Compilation fails.
单项选择题
A. j = -1
B. j = 0
C. j = 1
D. j = 2
E. Compilation fails.