多选题 What is the output of the following code segment?
String[] numbers = {"One" "'Two", "Three"};
for(String s : numbers){
System.out.print(s+" ");
}
  • A. One Two Three
  • B. Three Two One
  • C. A compile time error will be generated.
  • D. A runtime exception will be thrown.
【正确答案】 A
【答案解析】增强的for循环将顺序打印出每个字符串。B、C和D不正确。B不正确,因为它的顺序是错误的。C和D不正确,因为此代码是正确的。