Above code creates thread is running... as output. Following code illustrates Java Thread Example by implementing Runnable interface.
Above code produces thread is running... as output. If you are not extending the Thread class,your class object would not be treated as a thread object.So you need to explicitely create Thread class object.We are passing the object of your class that implements Runnable so that your class run() method may execute.