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


Please Help Members By Posting Answers For Below Questions

Differentiate between nested and inner class in java.

540


What is use of functional interface in java 8? Explain

559


Why is singleton class used?

513


How can you say java is object oriented?

581


What data type is true or false?

563






What do you know about the garbage collector in java?

562


What is the lifetime and scope of a variable?

509


Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

634


What is a protected void?

500


What Is Composition?

567


Which container method is used to cause a container to be laid out and redisplayed in java programming?

588


What modifiers may be used with a top-level class?

564


What is thread pool? How can we create thread pool in java?

614


What are the ways in which a thread can enter the waiting state?

500


What is string pool?

619