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
what are depricated methods in threads and explain the 
lifecycle methods
 Question Submitted By :: Ramanareddy333
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what are depricated methods in threads and explain the lifecycle methods
Answer
# 1
There are two deprecated methods in threads.
1.resume
2.suspend.
life cycle of methods of thread.
1.ready to run(start() method)
2.run(run() method)
3.suspend(wait() or sleep() method)
4.resume(notify() or notifyall() method)
5.death.
 
Is This Answer Correct ?    2 Yes 1 No
Dara
 
  Re: what are depricated methods in threads and explain the lifecycle methods
Answer
# 2
In threads two ways to create  threads.1.by extends the 
class
2.implements runnable interface

in threads the following methods are called life cycle 
methods

1.start 2.run 3.dead
 
Is This Answer Correct ?    0 Yes 1 No
Ravichandra
 
 
 
  Re: what are depricated methods in threads and explain the lifecycle methods
Answer
# 3
The depricated methods in threads are
1. stop
2. suspend
3. Resume

Life cycle of thread
A thread can be only in one of the five states
1. New (Not alive)
2. Runnable (alive)
3. Running
4. Waiting/Blocking/Sleeping
5. Dead
 
Is This Answer Correct ?    0 Yes 1 No
Prerana
 
  Re: what are depricated methods in threads and explain the lifecycle methods
Answer
# 4
stop(),suspend(),resume()
start()---will start a new thread of execution nd thread 
will be in runnable state
run()-----will run the current thread of execution
 
Is This Answer Correct ?    0 Yes 1 No
Ravikiran
 
  Re: what are depricated methods in threads and explain the lifecycle methods
Answer
# 5
Good grief. Doesn't anybody read the Javadoc? There are
*six* deprecated methods in java.lang.Thread.
 
Is This Answer Correct ?    1 Yes 0 No
Ejp
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between Web-based applications,Client- Server applications and Distributed applications? Infosys2
what is mean by method signature? Satyam6
What is the specification of ?CODEBASE? in an applet?  1
IS method overriding is Duplication of Methods? CybAge4
Name the types of mouse event listeners ?  2
How is Garbage collection done in Java? T3-Softwares2
What is a Java package and how is it used?  2
What are concepts of OOPS and how are they implemented in Java? KPIT2
what is diff bet iterator and enumeration?  2
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it? IBM4
What is the top class of AWT event hierarchy?  5
How a class can implement an interface? SysArc4
How can final class be used? Wipro2
How will you convert an ArrayList to Arrays? KPIT3
What are the Object and Class that classes used for?  3
In what circumstances, compiler will supply a default constructor for a class?  4
which one is performance wise advantageious from List,Set,Map?  5
How do u provide security in java  1
garbate collector(GC)?  4
What is file class and what is its purpose?  1
 
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