The Java Thread itself implements a Java Runnable
! and according to most of the experts over Internet, implements Runnable is preferred over extends Thread! even though we cannot use utilize Runnable in the sense of thread with out the Thread class!
Then why do we prefer to implement Runnable
over extending Thread
since in both cases the actual thread is stated by calling a Thread
implemented method (i.e. start()
or run()
) although in case of Thread
we are not truly "extending" the functionality of Thread
by merely overriding the run()
method?
I apologies if I sound confusing..!