what are depricated methods in threads and explain the
Answers were Sorted based on User's Feedback
Answer / dara
There are two deprecated methods in threads.
life cycle of methods of thread.
1.ready to run(start() method)
3.suspend(wait() or sleep() method)
4.resume(notify() or notifyall() method)
|Is This Answer Correct ?||8 Yes||2 No|
Answer / prerana
The depricated methods in threads are
Life cycle of thread
A thread can be only in one of the five states
1. New (Not alive)
2. Runnable (alive)
|Is This Answer Correct ?||5 Yes||1 No|
Answer / ravikiran
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 ?||3 Yes||2 No|
Answer / ejp
Good grief. Doesn't anybody read the Javadoc? There are
*six* deprecated methods in java.lang.Thread.
|Is This Answer Correct ?||2 Yes||1 No|
Answer / ravichandra
In threads two ways to create threads.1.by extends the
2.implements runnable interface
in threads the following methods are called life cycle
1.start 2.run 3.dead
|Is This Answer Correct ?||2 Yes||2 No|
Why we need Finally with try? pls expain with ur example..
What is flush () in java?
What is the use of object and class classes?
What is the difference between Java1.4 and Java1.5
Does 'true' and 'false' are keywords?
Explain about anonymous inner classes ?
What does the “static” keyword mean? Can you override private or static method in java?
what is template design pattern?
Explain yield() method in thread class ?
Which of the following can be referenced by a variable? A. The instance variables of a class only B. The methods of a class only C. The instance variables and methods of a class
How to create an interface?
How do you pass by reference?