I got a question like what is the state of a thread when it is created. And the option has both ready and runnable. So my doubts are,
Thanks in advance.
1 - no, it's NEW
2 - NEW is waiting to be executed, RUNNABLE is executing
3 - NEW
Who could answer better than Oracle: https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.State.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With