Skip to content

Commit 3dff63f

Browse files
authored
Update interviewQuestions.md
1 parent 45c3c9d commit 3dff63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interviewQuestions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ stop(executor);
9292
- `wait()`
9393
- release the lock or monitor
9494
- wait is used for inter-thread communication
95-
- `java.lang.Thread`类中,提供了`sleep()`
95+
- `java.lang.Object`类中提供了`wait()`
9696
- `sleep()`
9797
- doesn't release any lock or monitor while waiting
9898
- leep is used to introduce pause on execution.
99-
- `java.lang.Object`类中提供了`wait()`
99+
- `java.lang.Thread`类中,提供了`sleep()`
100100
- sleep need try catch interruption
101101

102102
#### 12. What is difference between CyclicBarriar and CountdownLatch in Java ?

0 commit comments

Comments
 (0)