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.
Asked: 2021-07-01 11:00:00 +0000
Seen: 13 times
Last updated: Oct 30 '22