文档介绍:1. Which two are equal? (Choose two.)
A. 32 / 4;
B. (8 >> 2) << 4; 32
C. 2 ^ 5; 7
D. 128 >>> 2; 32
E. (2 << 1) * (32 >> 3); 16
F. 2 >> 5; 0
2. Given the following,
1. import .*;
2. class Ticker ponent {
3. public static void main (String [] args) {
4. Ticker t = new Ticker();
5.
6. }
7. }
which two of the following statements, inserted independently, could legally be inserted into line 5 of this code? (Choose two.)
A. boolean test = (Component instanceof t);
B. boolean test = (t instanceof Ticker);
C. boolean test = (Ticker);
D. boolean test = (t ponent);
E. boolean test = (Object);
F. boolean test = (t instanceof String);
3. Given the following,
1. class Equals {
2. public static void main(String [] args) {
3. int x = 100;
4. double y = ;
5. boolean b = (x = y);
6. (b);
7. }
8. }
what is the result?
A. true
B. false
C. Compilation fails(编译失败)
D. An exception is thrown at runtime(运行的时候哦抛出了一个异常)
4. Given the following,
1. import ;
2. pareReference {
3. public static void main(String [] args) {
4. float f = ;
5. float [] f1 = new float[2];
6. float [] f2 = new float[2];
7. float [] f3 = f1;
8. long x = 42;
9. f1[0] = ;
10. }
11. }
which three statements are true? (Choose three.)
A. f1 == f2
B. f1 == f3
C. f2 == f1[1]
D. x == f1[0]
E. f == f1[0]
5.