Social Sciences, asked by manishlodhe3217, 1 year ago

When thread object is created and start method is invoked on that which is the initial state it will go into?

Answers

Answered by writersparadise
1
When thread object is created and start method is invoked on that  it will go from new  to runnable state. 

New :The thread in the New state when a thread is instantiated until the start() method is called on the thread instance. In this state the thread is not considered to be alive.

Runnable : The thread enters into runnable state after the start() method is invoked in the thread instance. The thread may enter into the Runnable state from Running state. In this state, it is considered to be alive.


Similar questions