Creating a ThreadJava defines two ways in which this can be accomplished:You can implement the Runnable interface. You can extend the Thread class, itself.