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
Differentiate between nested and inner class in java.
What is use of functional interface in java 8? Explain
Why is singleton class used?
How can you say java is object oriented?
What data type is true or false?
What do you know about the garbage collector in java?
What is the lifetime and scope of a variable?
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?
What is a protected void?
What Is Composition?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What modifiers may be used with a top-level class?
What is thread pool? How can we create thread pool in java?
What are the ways in which a thread can enter the waiting state?
What is string pool?