单项选择题
public class Test {
public static void main(String[] args) {
String str = NULL;
System.out.println(str);
}
}
What is the result?()
A. NULL
B. Compilation fails.
C. The code runs with no output.
D. An exception is thrown at runtime.
相关考题
-
单项选择题
public class Test { private static float[] f = new float[2]; public static void main(String args[]) { System.out.println(“f[0] = “ + f[0]); } } What is the result?()
A. f[0] = 0
B. f[0] = 0.0
C. Compilation fails.
D. An exception is thrown at runtime. -
单项选择题
Whatisthenumericalrangeofachar?()
A. 0 ... 32767
B. 0 ... 65535
C. –256 ... 255
D. –32768 ... 32767
E. Range is platform dependent. -
多项选择题
WhichtwostatementsaretrueregardingthereturnvaluesofpropertywrittenhashCodeandequalsmethodsfromtwoinstancesofthesameclass?()
A. If the hashCode values are different, the objects might be equal.
B. If the hashCode values are the same, the object must be equal.
C. If the hashCode values are the same, the objects might be equal.
D. If the hashCode values are different, the objects must be unequal.
