问题
单项选择题
设有整型数组的定义:int a[]=new int[8];则a.length的值为 ( )
A.8
B.9
C.7
D.6
答案
参考答案:A
解析: 该题考查的是数组长度的问题。由于Java中的数组是Array类的实例,所以用户可通过Array类的length成员变量获取数组的长度。本题中a.length=8。
设有整型数组的定义:int a[]=new int[8];则a.length的值为 ( )
A.8
B.9
C.7
D.6
参考答案:A
解析: 该题考查的是数组长度的问题。由于Java中的数组是Array类的实例,所以用户可通过Array类的length成员变量获取数组的长度。本题中a.length=8。
补全对话。 | |
B: Yes. It's about my sister, Melisa. She went to school this morning, and she hasn't arrived yet. and it's eleven o'clock and…… A: Just a moment, Miss……? B: Miss Green, 36 Nanjing Road. A: How old is Melisa? B: 1_______ A: And what does she look like? B: 2_______ A: And what's she wearing? B: 3_______ A: We'll try our best to find her. We'll telephone you at soon as possible. B: 4_______ A: 5_______ |