Hi, This is from JXam ver 1.81: Which methods will stop a thread from executing? wait() notify() yield() suspend() sleep() wait(), yield() and sleep() are obvious. But will suspend() also be an answer? Because although it is deprecated, it will still cause the thread to stop. Am I using an older version of Jxam? Regards, Kapil
Hope this helps. Correct me if I am wrong.<p>Cheers <img src="smile.gif" border="0"> ,<br />Kapil
Hi Kapil, Yes those methods are deprecated but if u are goign for JAVA@ certification they are Deprecated .In that case if this question comes in the exam u have to answer respectively excluding the deprecated methods. Take care Amit ------------------
I think the question does not say anything about deprecated methods.The question only asks about the methods which make a thread stop it's execution. Remember,in the exam DO NOT draw your own conclusions unless it is really required (it is in some cases).
------------------ Udayan Naik Sun Certified Programmer for the Java 2 Platform
Udayan Naik<BR>Sun Certified Programmer for the Java 2 Platform
Hey, the new exam tells us how many options we have to select, so it shouldn't be too difficult to figure out if they want us to mark "suspend()" or not!! [This message has been edited by Nandini Gangopadhyay (edited April 13, 2001).]