单项选择题X 纠错
A. -1
B. 255
C. 127
D. Compilation will fail.
E. Compilation will succeed but the program will throw an exception at line 4.
你可能喜欢
单项选择题
A. 0 . . . 32767
B. 0 . . . 65535
C. –256 . . . 255
D. –32768 . . . 32767
E. Range is platform dependent.
单项选择题
A. The program prints “lava”
B. The program prints “java”
C. An error at line 7 causes compilation to fail.
D. Compilation succeeds but the program throws an exception.
多项选择题
A. (a ==c)
B. (d ==e)
C. (b ==d)
D. (a ==b)
E. (b ==c)
F. (d ==10.0)
单项选择题
A. 2
B. 4
C. 8
D. 16
E. The code will not compile.
单项选择题
A. Check() can never return true.
B. Check() can return true when setXY is called by multiple threads.
C. Check() can return true when multiple threads call setX and setY separately.
D. Check() can only return true if SyncTest is changed to allow x and y to be set separately.
单项选择题
A. Errors at lines 7 and 8 cause compilation to fail.
B. The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”).
C. The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”).
D. The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1” followed by “x=2, y=2”).
单项选择题
A. The elements in the collection are ordered.
B. The collection is guaranteed to be immutable.
C. The elements in the collection are guaranteed to be unique.
D. The elements in the collection are accessed using a unique key.
E. The elements in the collections are guaranteed to be synchronized.
多项选择题
A. Java.util.Map
B. Java.util.Set
C. Java.util.List
D. Java.util.StoredSet
E. Java.util.StoredMap
F. Java.util.Collection
单项选择题
A. Byte
B. Long
C. Float
D. Double
E. Object
F. A and B
G. C and D