在Java中,获取文件大小的方法,是()
A: length()
B: length
C: size()
D: size
A: length()
B: length
C: size()
D: size
A
举一反三
- 求字符串常量的长度使用() A: length属性 B: length方法 C: size属性 D: size方法
- java.lang.String中获取字符串长度的方法是() A: len() B: length() C: size() D: sizeof()
- 获取HashSet集合中数据元素个数的方法是() A: len() B: length() C: size() D: sizeof()
- StringBuffer类中获取字符序列长度的方法是() A: length() B: len() C: size() D: sizeof()
- 获取Map容器中的键值对个数的方法是()。 A: len() B: length() C: size() D: values()
内容
- 0
The flexibility of the compression bar intensively reflects which factors of the compression bar will affect the critical stress. A: Length, constraints, section size and shape B: Material, length and constraints C: Material, constraints, section size and shape D: Material, length, section size and shape
- 1
在Java中,关于数组,以下说法正确的是()。 A: 通过数组的length()方法可获得数组的长度 B: 通过数组的size属性可获得数组的长度 C: 通过数组的length属性可获得数组长度 D: 通过数组的size()方法可获得数组的长度
- 2
以下哪个选项可以确定字符串的长度?( ) A: size B: length C: max_value D: length()
- 3
以下哪个选项用以确定字符串的长度?( ) A: size B: length C: max_value D: length()
- 4
想要获取单列集合中元素的个数应该使用以下哪个方法? A: length( ) B: size( ) C: get(int index) D: iterator( )