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
What is widening and narrowing in java? Discuss with an example.
What is data type example?
Explain about instanceof operator in java?
Discuss about garbage collector in Java.
What is an object in java and how is it created?
What is a java lambda expression?
Is array size fixed in java?
What is a generic type?
What are variable arguments or varargs?
Explain inheritance in java?
Explain a few methods of overloading best practices in java?
What is appletviewer?
What is the difference between a method and a function in alice?
What is the use of arraylist in java?
Explain java coding standards for interfaces?