Write a Java program for implementing Runnable interface.
public class ImpementingRunnable implements Runnable {
@Override
public void run() {
System.out.println("This thread is running ... ");
}
public static void main(String[] args) {
Thread t = new Thread(new ImpementingRunnable());
t.start();
}
}
This thread is running ...