explain the life cycle of thread?
Answer Posted / vazza jones
The thread states are:
- New (created but start mtd not called)
- Runnable (Ready to run, waiting for CPU cycles)
- Running (allocated CPU cycle)
- Suspended (timed sleeping)
- Wait (waiting for a notify)
- Stopped (Completed)
| Is This Answer Correct ? | 40 Yes | 4 No |
Post New Answer View All Answers
What exactly is a .class file?
How to compare strings in java?
Define interface in java?
What is the difference between the paint() and repaint() methods in java programming?
Why put method is idempotent?
What is the difference between yield() and sleep()?
Which of the classes will have more memory allocated?
Can we have a method name same as class name in java?
Explain the difference between an object-oriented programming language and object-based programming language?
do I need to use synchronized on setvalue(int)? : Java thread
List the features of java programming language.
What is anonymous inner class?
How do you format in java?
Does anyone still use java?
Explain public static void main(string args[]) in java.