Answer
There are two ways to create thread in Java
Inherited from the Thread class
Implementing the Runnable interface
Extends Thread
|
class MyThread extends Thread { |
Implements Runnable
|
class MyThread implements Runnable { |