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


Please Help Members By Posting Answers For Below Questions

State two differences between C and Java.

687


What is the difference between form & report?

583


What is the difference between equals() and == in java?

517


Explain about arraylist?

571


What is the type of lambda expression?

531






What are byte codes?

649


How can you traverse a linked list in java?

670


How many days will it take to learn java?

506


What is final variable?

486


How to solve the problem of generating the unique hash keys with hash function?

1453


How java is similar to c?

580


How can you set an applet’s height and width as a percentage?

504


What is the purpose of static methods and variables?

523


Explain about the select method with an example?

583


What is use of arraylist in java?

574