What is the difference between sleep and suspend ? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
What is the difference between sleep and suspend ?

If the thread is not allowed to perform any operations for a particular period of time, then use sleep() method. The sleep() method suspends currently executing thread for the specified time.
Join()
The currently running thread is suspended until the invoking thread completes its execution (and entered into dead state). The currently executing thread joins at the end of the invoking thread. This is used when the currently executing thread cannot continue until the invoking thread completes its execution.

More interview questions and answers
What is meant by casting ?
What is the difference between final, finally and finalize ?
What is meant by packages ?
What are all the packages ?
Name 2 calsses you have used ?
Name 2 classes that can store arbitrary number of objects ?
What is the difference between java.applet.* and java.applet.Applet ?
What is a default package ?
What is anonymous class ?
Name interfaces without a method ?
What is the use of an interface ?
What is a serializable interface ?
How to prevent field from serialization ?
What is meant by exception ?
How can you avoid the runtime exception ?
What is the difference between throw and throws ?
Can multiple catch statements be used in exceptions ?
Is it possible to write a try within a try statement ?
What is the method to find if the object exited or not ?
What is meant by a Thread ?
What is meant by multi-threading ?
What is the 2 way of creating a thread ? Which is the best way and why?
What is the method to find if a thread is active or not ?
What are the thread-to-thread communication ?
What are the thread-to-thread communication ?
What is the difference between sleep and suspend ?
Can thread become a member of another thread ?
What is meant by deadlock ?
What is meant by deadlock ?
How can you avoid a deadlock ?
What are the three types of priority ?
What is the use of synchronizations ?
Garbage collector thread belongs to which priority ?
What is the use of ‘this’ ?
How can you find the length and capacity of a string buffer ?
How to compare two strings ?
What are the interfaces defined by Java.lang ?
What is the purpose of run-time class and system class?
What is meant by Stream and Types ?
What is the method used to clear the buffer ?
What is meant by Stream Tokenizer ?
What is serialization and de-serialisation ?
What is meant by Applet ?
How to find the host from which the Applet has originated ?
What is the life cycle of an Applet ?
How do you load an HTML page from an Applet ?
What is meant by Applet Stub Interface ?
What is meant by getCodeBase and getDocumentBase method ?
How can you call an applet from a HTML file?
What is meant by Applet Flickering ?
How to communicate between applet and an applet ?
What is meant by event handling ?
What are all the listeners in java and explain ?
What is meant by an adapter class ?
What are the types of mouse event listeners ?
What are the types of methods in mouse listeners ?
What is the difference between panel and frame ?
What is the default layout of the panel and frame ?
What is meant by controls and types ?
What is the difference between a scroll bar and a scroll panel?
What is the difference between list and choice ?
How to place a component on Windows ?
What are the different types of Layouts ?
What is meant by CardLayout ?
What is the difference between GridLayout and GridBagLayout
What is the difference between menuitem and checkboxmenu item.
What is meant by vector class, dictionary class , hash table class,and property class ?
Which class has no duplicate elements ?
What is resource bundle ?
What is meant by Swing ?
What is the difference between AWT and Swing ?
What is the difference between an applet and a Japplet
What are all the components used in Swing ?
What is meant by tab pans ?
What is the use of JTree ?
How can you add and remove nodes in Jtree?
What is the method to expand and collapse nodes in a Jtree?
What is the use of JTable ?
What is meant by JFC ?
What is the class in Swing to change the appearance of the Frame in Runtime?
How to reduce flicking in animation ?
What is meant by Javabeans ?
What is JAR file ?
What is meant by manifest files ?
What is Introspection ?
What are the steps involved to create a bean ?
Say any two properties in Beans ?
What is persistence ?
What is the use of beaninfo ?
What are the interfaces you used in Beans ?
What are the classes you used in Beans ?
What is the diffrence between an Abstract class and Interface?
What is user defined exception ?
What is user defined exception ?
What do you know about the garbate collector ?
What is the difference between C++ & Java ?
How do you communicate in between Applets & Servlets ?
What is the use of Servlets ?
In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?