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

单选题:For code below, which statement is correct?

Luz5年前 (2021-05-10)题库1273
For code below, which statement is correct? @[B](2)
```Java
public static void main(String[] args) throws Exception {
Thread.sleep(5000);
System.out.println("awake");
}
```

A. Compile error
B. Wait about five seconds and it prints out “awake”
C. Finishes without any printed out
D. Run-time exception every time





A.Compile error
B.Wait about five seconds and it prints out “awake”
C.Finishes without any printed out
D.Run-time exception every time


答案:B