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
which method is used to know the status of the Thread?
 Question Submitted By :: Praveencarasala
I also faced this Question!!     Rank Answer Posted By  
 
  Re: which method is used to know the status of the Thread?
Answer
# 1
isAlive() method tells whether the thread is alive or not
 
Is This Answer Correct ?    7 Yes 1 No
Chandrarekha
 
  Re: which method is used to know the status of the Thread?
Answer
# 2
Hi... we can use public void isAlive();
 
Is This Answer Correct ?    1 Yes 0 No
Devarathnam C,kotagudibanda(po
 
 
 
  Re: which method is used to know the status of the Thread?
Answer
# 3
we can use boolean isAlive()
 
Is This Answer Correct ?    3 Yes 1 No
Vineela
 
  Re: which method is used to know the status of the Thread?
Answer
# 4
GetThreadState( )
 
Is This Answer Correct ?    0 Yes 0 No
Vijay
 
  Re: which method is used to know the status of the Thread?
Answer
# 5
Vijay was joking !!!

The question is about what state the thread is in Running paused ready to run 

How to find that?

isAlive just says whether its died or not
 
Is This Answer Correct ?    0 Yes 0 No
Praveen Carasala
 
  Re: which method is used to know the status of the Thread?
Answer
# 6
JDK 1.5 has added the new functionality to know the state of
the Thread as getState();
 
Is This Answer Correct ?    1 Yes 0 No
Piyush
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference between pagecontext and servletcontext? JBA-Infotech4
what is a package?  8
What are interfaces?  1
Can a lock be acquired on a class?  2
How do you relate a Interface to a Class? Tell me in Detail?  4
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.  1
why interfaces are faster than abstract classes?  2
What is the Set interface?  2
What is Connection pooling? Explain Pros and Cons?  1
Difference between Applet & Application?  5
what are depricated methods ? Satyam4
Hi friends, i am new to java. can you explain how java is secured.  1
how many ways we can serialize the java object? Satyam1
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ? TCS1
What classes can be used to store arbitrary number of objects ?  1
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}  4
I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose. Oracle2
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access? Verizon1
what is difference between requestprocessor and request dispatcher? Tech-Mahindra1
what is difference between throw and throws in exception?  16
 
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