class Java_Thread extends Thread{ public void run(){ System.out.println("thread is running..."); } public static void main(String args[]){ Java_Thread thread =new Java_Thread (); thread.start(); } }