Question: what are the two ways to create a thread in java?
Answer: Extends Thread class. Create a thread by a new class that extends Thread class and create an instance of that class. ... 
Implementing the Runnable Interface. The easiest way to create a thread is to create a class that implements the runnable interface.