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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
explain the life cycle of thread?
 Question Submitted By :: Venu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: explain the life cycle of thread?
Answer
# 1
There are number of stages for executing the Thread.
1.ready to run
2.run
3.suspend(wait,sleep)
4.resume(notify,notify all)
5.kill.
 
Is This Answer Correct ?    16 Yes 6 No
Ganesh
 
  Re: explain the life cycle of thread?
Answer
# 2
There are number of stages for executing the Thread.
1.born state
2.runnable
3.running(wait,sleep)
4.blocked(wait,sleep)
5.destroy.
 
Is This Answer Correct ?    8 Yes 6 No
Srinivas
 
 
 
  Re: explain the life cycle of thread?
Answer
# 3
There are number of stages for executing the Thread.
1.born state
2.runnable
3.running
4.blocked(wait,sleep,suspend)
5.destroy(stop).
 
Is This Answer Correct ?    4 Yes 4 No
Srinivas Ponugoti
 
  Re: explain the life cycle of thread?
Answer
# 4
b/c in every program at least one thread automically involve
 
Is This Answer Correct ?    1 Yes 2 No
Jetender
 
  Re: explain the life cycle of thread?
Answer
# 5
The thread states are:

- New (created but start mtd not called)
- Runnable (Ready to run, waiting for CPU cycles)
- Running (allocated CPU cycle)
- Suspended (timed sleeping)
- Wait (waiting for a notify) 
- Stopped (Completed)
 
Is This Answer Correct ?    5 Yes 0 No
Vazza Jones
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly? Satyam1
What is the return type of a program?s main() method?  2
What is the need to implement Serializable interface (with no methods) for objects which are to be serialized ? We can write our own functionality which writes objects to streams then why we need to implement and tell JVM that which objects can be serialized. iFlex4
How many statements can be created with one connection in jdbc? Polaris2
What is a compilation unit?  2
i need example for java abstraction. where we use abstraction and why we need abstraction. Oracle1
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist? EDS4
What is the default modifier in Interface?  4
what is struts-config-xml?and its use?  3
What are the operands of instanceof operator?  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
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006. EDS1
What is the difference between serialization and deserialization? ABC2
whats the diff between jsp and servlets? HCL9
Explain method overloading and overriding?  6
what is mean by method signature? Satyam5
What is the frontend and backedn in Java? TCS2
what is stringtolennizer with example? Symphony1
What is the difference between java and .Net? Bosch5
What is Collection interface? Zensar1
 
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