Implementing Runnable vs extending Thread
As we already understood in previous article that there are 2 ways to create threads in Java 1. By Implementing Runnable interface 2. By Extending Thread class. But what is the best way to create thread ? There are few reasons why implementing Runnable interface is more preferable than extending Thread class Yes, implementing Runnable […]
