第5章JavaAPI练习题2
(2019-06-04 08:23:21)
标签:
教育 |
一、填空题
1.
2.
3.
4.
5.
二、判断题
1.
2.
3.
4.
5.
三、选择题
1.
A: Runtime r = new Runtime();
B: Runtime r = Runtime.getRuntime();
C: Runtime r = Runtime.getInstance();
D:
2.
A: String str = "abc";
B: String str = 'abc';
C: String str = abc;
D: String str = 0;
3.
A: 11.9
B: -11.0
C: -11.5
D: -12.0
4.
A: System类是final关键字修饰的类,它不能被其他类所继承
B: System类不能被实例化
C: System类中定义了许多方法,但是没有定义字段
D: System类中提供了获取当前系统属性的方法
5.
A:
B:
C:
D:
四、简答题
1.