+ 5

Why Exception raised when we call sleep(1000) of thread class in Java ?

26th Mar 2019, 10:57 AM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
3 Answers
+ 6
Did you catch the exception? Is there another thread that has interrupted the current one?
26th Mar 2019, 11:01 AM
Chiara Mele
Chiara Mele - avatar
+ 3
Thanks Chiara Mele it's works 👍
26th Mar 2019, 5:21 PM
Kuldeep Amarwani
Kuldeep Amarwani - avatar
+ 2
Kuldeep Amarwani you're welcome :)
27th Mar 2019, 6:40 PM
Chiara Mele
Chiara Mele - avatar