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
Explain the advantages of packages in java?
Can a top level class be private or protected?
When super keyword is used?
Explain the importance of throws keyword in java?
Explain restrictions on using enum?
What is a nested class?
When should I use stringbuffer?
Give us a program to check for parenthesis matching using stack.
What is the purpose of sizeof operator?
What are the different types of collections in java?
Why is string class considered immutable?
What is the difference between choice and list?
What are the four versions of java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is a native method in java programming?