CREATING AND STARTING THREADS IN JAVA
What are the two different methods of creating a thread in Java? What method must be implemented in either case?
In Java, an object of the Thread class can represent a thread. Thread can be implemented through any one of two ways:
1.You can implement the Runnable interface.
2.You can extend the Thread class itself.