public class ExmpleThrd {
private static class InnerThrd implements Runnable {
public void run() {
System.out.println("Running Concurent Thread...!!!");
System.out.println("its implementing Runnable interface...");
}
}
public static void main(String[] args) {
//Thread t = new Thread(new InnerThrd());
//t.start();
InnerThrd in = new InnerThrd();
in.run();
}
}
output:::::
Running Concurent Thread...!!! It is implementing Runnable Interface.!!!