what are depricated methods in threads and explain the
lifecycle methods
Answer Posted / dara
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 ? | 8 Yes | 2 No |
Post New Answer View All Answers
What are the types of java languages?
Which sorting algorithm is in place?
When should I use stringbuffer?
What is the difference between static class and normal class?
What is a buffer in java?
is there a separate stack for each thread in java? : Java thread
Can we print null in java?
What are the 3 types of loops in java?
Can memory leak in java?
What are the restrictions that are applied to the java static methods?
What is entry in java?
Define max and min heap, also the search time of heap.
When do we use synchronized blocks and advantages of using synchronized blocks?
What is nullpointerexception?
What is string literal in java?