Hello everyone..
As we know we create an object of interface. Then why the below program is getting executed..?
I need an explanation how it is getting executed.....?
public class
Test {
public static void main(
String[] args) {
new
Thread(new Runnable() {
public void run() {
System.out.println("Hello!");
}
}).start();
}
}
Thank Q.