Question: what are the two methods to create threads explain them with a suitable example?
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.