aimtocodeThread1.java
package demotest;
public class GuruThread1 implements Runnable{
/**
* @param args
*/
public static void main(String[] args) {
Thread aimtocodeThread1 = new Thread("aimtocode.com");
Thread aimtocodeThread2 = new Thread("prayag-verma");
aimtocodeThread1.start();
aimtocodehread2.start();
System.out.println("Thread names are following:");
System.out.println(aimtocodeThread1.getName());
System.out.println(aimtocodeThread2.getName());
}
@Override
public void run() {
}
}