ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is stop(), suspend(), resume() method?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is stop(), suspend(), resume() method?
Answer
# 1
stop(), suspend(), resume() methods are deprecated in the 
jdk1.2
 
Is This Answer Correct ?    0 Yes 0 No
Mohammed Salim
 
  Re: What is stop(), suspend(), resume() method?
Answer
# 2
stop(), suspend() and resume() are the methods used for 
thread implementation.
stop() - terminate the thread execution,
Once a thread is stopped, it cannot be restarted with the 
start() command, since stop() will terminate the execution 
of a thread. Instead you can pause the execution of a 
thread with the sleep() method. The thread will sleep for a 
certain period of time and then begin executing when the 
time limit is reached. But, this is not ideal if the thread 
needs to be started when a certain event occurs. In this 
case, the suspend() method allows a thread to temporarily 
cease executing.
resume() method allows the suspended thread to start again.
 
Is This Answer Correct ?    8 Yes 0 No
Kruthi
 
 
 
  Re: What is stop(), suspend(), resume() method?
Answer
# 3
stop(),suspend() resume() methods are deprecated used for 
inter thread communication
stop will stop the exceution of thread
suspend will temporarily suspends the thread execution
resume will invoke the suspended threads for execution
 
Is This Answer Correct ?    7 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?  5
How to synchonise HashMap IBM3
While opening the file, what type of exceptions can be caught?  3
Explain Public static void main?  2
How are Java source code files named?  3
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)  1
What is unicode?  1
how to use this key word in java programming?  5
What is the purpose of having the concept of overloading? Ness-Technologies5
what is a transient variable?  4
How many bits are used to represent unicodde,ASCII,UTF-16 and UTF-8 characters?  2
Read data from console and print in one file. That would be in C:\temp ? Thanks, Bose Oracle1
What is a native method?  2
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one? Huawei1
How are this and super used?  6
what is meaning of JIT?  3
what is difference betwwen hashmap and hashtable ? Fidelity6
In what type of containers, Border layout is a default layout?  3
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set? Aricent5
what are ER diagrams?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com