单选题:For code below, which statement is correct?
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
```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