R4R
Right Place For Right Person TM

What is the difference between sleep and suspend ?

previous previous previous
Question:
What is the difference between sleep and suspend ?

Question:What is the difference between sleep and suspend ?


Answer
The sleep() method moves the thread to waiting state for particular time. for example Thread.sleep(7000); but the suspend() method moves to waiting state until the resume() method gets called.

By:Jalees
Date:

What is the difference between sleep and suspend ?

Post Your Answers


User Name:
Answers:

Related Links

  1. Can thread become a member of another thread ?
  2. What are the three types of priority ?
  3. Garbage collector thread belongs to which priority ?
  4. What is the use of �this� ?
  5. How can you find the length and capacity of a string buffer ?
  6. How to compare two strings ?
  7. What is the purpose of run-time class and system class?
  8. What is the method used to clear the buffer ?
  9. What is mean by Stream Tokenizer ?
  10. What is serialization and de-serialisation ?
  11. What is mean by Applet ?
  12. How to find the host from which the Applet has originated ?
  13. What is the life cycle of an Applet ?
  14. How do you load an HTML page from an Applet ?
  15. What is mean by getCodeBase and getDocumentBase method ?
  16. What is the use of parameter tag ?
  17. What is the difference between getAppletInfo and getParameterInfo ?
  18. How to communicate between applet and an applet ?
  19. What is mean by event handling ?
  20. What are all the listeners in java and explain ?
  21. What is mean by an adapter class ?
  22. What are the types of mouse event listeners ?
  23. What are the types of methods in mouse listeners ?
  24. What is the difference between panel and frame ?
  25. What is the default layout of the panel and frame ?
  26. What is the difference between list and choice ?
  27. What are the different types of Layouts ?
  28. What is mean by CardLayout ?
  29. What is the difference between GridLayout and GridBagLayout?
  30. Which class has no duplicate elements ?
  31. What is mean by Swing ?
  32. What is the difference between an applet and a Japplet?
  33. What are all the components used in Swing ?
  34. What is mean by tab pans ?
  35. What is the use of JTree ?
  36. What is the use of JTable ?
  37. What is mean by JFC ?
  38. What is JAR file ?
  39. What is mean by manifest files ?
  40. What is two properties in Beans ?
  41. What is the use of beaninfo ?
  42. What are the interfaces you used in Beans ?
  43. What are the classes you used in Beans ?
  44. What is the difference between C++ & Java ?
  45. What is the difference between Process and Threads ?
  46. How will you initialize an Applet ?
  47. What is the order of method invocation in an Applet ?
  48. When is update method called ?
  49. What is JNI ?
  50. What is the base class for all swing components ?

Question:What is the difference between sleep and suspend ?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R