1 / 8
文档名称:

java笔试题03.doc

格式:doc   大小:64KB   页数:8
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

java笔试题03.doc

上传人:mh900965 2018/1/4 文件大小:64 KB

下载得到文件列表

java笔试题03.doc

相关文档

文档介绍

文档介绍: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.