多选题 What is the output of the following code segment?
int[] testScores = {80,63,99,87,100};
System.out.println("Length: " + testScores.length);
  • A. Length: 4
  • B. Length: 5
  • C. Length: 100
  • D. A compile time error will be generated.
  • E. A runtime exception will be thrown.
【正确答案】 B
【答案解析】数组的长度等于数组中元素的个数。A、C、D和E不正确。