ArrayList集合中大部分方法都是从父类Collection和List继承过来的,其中【 】方法和【 】方法用于实现元素的存取。
查看答案
HashSet是根据对象的哈希值来确定元素在集合中的存储位置,因此性能较差。( )
A. 对
B. 错
下面哪个选项可以获取Runtime类的实例( )
A. Runtime r = new Runtime();
B. Runtime r = Runtime.getRuntime();
C. Runtime r = Runtime.getInstance();
D. 以上选项都不能获取Runtime实例
若double val = Math.ceil(-11.9);,则val的值是( )
A. 11.9
B. -11.0
C. -11.5
D. -12.0
下列关于System类的描述中,错误的是( )
A. System类是final关键字修饰的类,它不能被其他类所继承
B. System类不能被实例化
C. System类中定义了许多方法,但是没有定义字段
D. System类中提供了获取当前系统属性的方法