Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

multithreading in java simple example

class MultithreadingDemo extends Thread{  
  public void run(){  
    System.out.println("My thread is in running state.");  
  }   
  public static void main(String args[]){  
     MultithreadingDemo obj=new MultithreadingDemo();   
     obj.start();  
  }  
}
Source by beginnersbook.com #
 
PREVIOUS NEXT
Tagged: #multithreading #java #simple
ADD COMMENT
Topic
Name
7+9 =