What is the life cycle of Thread ?

Answer Posted / harish

Once you create a Thread Class. Instantiate the Thread and
invoke the method start. It intern triggers the run method
on the Thread. Once the run method is completed, The
thread will be in dead state.

Is This Answer Correct ?    53 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is singleton class in java?

617


What are static variables and functions?

618


What is the differences between heap and stack memory in java? Explain

527


Why are data types important?

531


Explain the importance of finally over return statement?

604






What is math in java?

562


How to read and write image from a file ?

550


Which of the classes will have more memory allocated?

532


Why charat is used in java?

536


What is parsing in java?

527


Which class contains a method: cloneable or object?

535


What lambda means?

541


What’s the difference between the methods sleep() and wait()?

538


What is static method with example?

612


What is a "pure virtual" member function?

594