A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

How a class implements Runnable


class A implements Runnable { public void run() { System.out.println("bye World"); } } class Two { public static void main(String args[]) { //A obj=new A(); Runnable r=new A(); //Thread t1=new Thread(obj); Thread t1=new Thread(r); t1.start(); } }

LEARN TUTORIALS

.

.