What is the difference between sleep and suspend ?

What is the difference between sleep and suspend ?

The sleep() method moves the thread to waitingstate for particular time. 

for exampleThread.sleep(7000);butthe suspend() method moves to waiting state untilthe resume() method gets called.


By:Jalees
Date:2012-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher