Thread class and Runnable interface in Java

Dif­fer­ence between Thread class and Runnable inter­face in java- Mul­ti­ple Inher­i­tance– The lim­i­ta­tion with“extends Thread” approach is that if you stretch Thread, you can­not stretch any­thing else. Java doesn’t sup­port mul­ti­ple inher­i­tance. In real­i­ty, you don’t need Thread class behav­iour, because to be able to use a thread you will need to instan­ti­ate one any­way. On the … Read moreThread class and Runnable inter­face in Java