1class MultithreadingDemo extends Thread{
2 public void run(){
3 System.out.println("My thread is in running state.");
4 }
5 public static void main(String args[]){
6 MultithreadingDemo obj=new MultithreadingDemo();
7 obj.start();
8 }
9}