what are depricated methods in threads and explain the
lifecycle methods
Answer Posted / prerana
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 ? | 5 Yes | 1 No |
Post New Answer View All Answers
How do you write a scanner class in java?
What is indexof in java?
What are the classes of java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What are loops in java?
Difference between stack and queue?
What if I write static public void instead of public static void in java?
What is empty list in java?
Is void a return type?
What is a platform?
What is t in parametric equations?
What is a class variable?
What is a “stateless” protocol ?
What are the main differences between notify and notifyAll in Java?
What is treeset in java?