Tag: thread creation

What is difference between extending Thread class and implementing Runnable Interface?

Answer:Difference between extending thread class and implementing Runnable interface in Java. 1-      Extending thread class is only possible if you are not extending any other class as java doesn’t respect multiple inheritances where as implementation of Runnable Interface can be done on any class. 2-      If you extend from the thread class, entire functionality of…

Read the full article