what are the two methods to create threads?
['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.']