Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If we do not override the run method of the Thread class, the state of the thread will not change. However, the thread will not execute any logic and will terminate immediately after it is started. By default, the run method of the Thread class is an empty method. Therefore, it is necessary to override the run() method and place the logic which the thread should execute in it.