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

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

Luz5年前 (2021-05-10)题库1308
For code below, the result would be? @[B](2)
```Java
String s = " Welcome to Zhejiang University ";
s.trim();
System.out.println(s.startsWith("Welcome"));
```

A. true
B. false
C. Compile error
D. Run-time exception




A.true
B.false
C.Compile error
D.Run-time exception


答案:B