fork download
  1. class Multi3 implements Runnable{
  2. public void run(){
  3. System.out.println("thread is running...");
  4. }
  5.  
  6. public static void main(String args[]){
  7. Multi3 m1=new Multi3();
  8. Thread t1 =new Thread(m1);
  9. t1.start();
  10. }
  11. }
Success #stdin #stdout 0.04s 4452352KB
stdin
Standard input is empty
stdout
thread is running...