//performing single task using single thread
//Creating thread by implementing runnable interface
public class CreateThread1 implements Runnable {
@Override
public void run() {
System.out.println("Thread task");
}
public static void main(String[] args) {
CreateThread1 c1 = new CreateThread1();
Thread th = new Thread(c1);
th.start();
}
}