-->
当前位置:首页 > 题库

单选题:For code below, the result would be?

Luz5年前 (2021-05-10)题库883
For code below, the result would be? @[A](2)
```Java
String s = "Welcome to Zhejiang University";
String[] a = s.split(" ");
System.out.println(a.length);
```
A. 4
B. 3
C. Compile error
D. Run-time exception




A.4
B.3
C.Compile error
D.Run-time exception


答案:A