Explain the available thread states in a high-level?
Answer / Asad Ali
"Java has six thread states: New, Runnable, Blocked, Terminated, TimedWaiting, and TimeRunning. The 'New' state refers to the object being initialized. The 'Runnable' state means the thread is waiting for CPU time. The 'Blocked' state occurs when a thread is blocked because it is waiting on a lock or I/O operation. The 'Terminated' state means the thread has finished its execution. The 'TimedWaiting' state refers to a waiting thread that has given up its lock and is waiting for another event to happen, such as a notification from another thread or I/O availability. The 'TimeRunning' state is the same as Runnable but with more specific emphasis on running threads that have not yet been assigned any CPU time."
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you take thread dump in java?
What is the public method modifier?
What is the difference between actual and formal parameters?
What do you understand by copy constructor in java?
What are File and RandomAccessFile classes?
What are meta-annotations?
What is meant by constructor?
What is an event?
while creating thread why we extend thread class
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
What are implicit objects in java?
What is garbage collection? What is the process that is responsible for doing that in java?