Question: what is the difference between sleep and suspend in java?
Answer: Difference between sleep(), suspend() and wait() sleep() is a static method that is used to send the calling thread into a non-runnable state for the given duration of time. ... suspend() method has been deprecated, as it is inherently deadlock-prone.It suspends the thread on which it is invoked.