What is the difference between generating a thread by implementing Runnable or by extending the Thread class?

What is the difference between generating a thread by implementing Runnable or by extending the Thread class?



Answer: Implementing Runnable has the benefit of being able to extend another class if the programmer wishes to do so. Otherwise, both are functionally the same.


Learn More :

Multithreading and Concurrent Processing

Learn More Multiple Choice Question :