Difference between sleep and suspend?

Answer Posted / satya

sleep(long millis)

takes a pause for a thread for a time in milli seconds,
after the sleep time is over then the thread is again
executing

suspend()

suspending the running thread

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

whats is mean by connectionpooling

1558


What modifiers may be used with an inner class that is a member of an outer class?

566


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2547


What do you mean by Socket Programming?

540


what are RemoteObjects?

2249






If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

558


What is the RMI and Socket?

618


Describe, in general, how java's garbage collector works?

530


what is a portable component?

1457


what is meant by JRMP?

1804


What is scalable, portability in the view of J2EE?

1865


Define prototype?

576


Why won’t the jvm terminate when I close all the application windows?

745


What is prototype?

597


What is chat area? Explain.

551