Which constructs an anonymous inner class instance?
A.Runnable r = new Runnable() { };
B.Runnable r = new Runnable(public void run() { });
C.Runnable r = new Runnable { public void run(){}};
D.System.out.println(new Runnable() {public void run() { }});
Answer:D
Which constructs an anonymous inner class instance?
A.Runnable r = new Runnable() { }; B.Runnable r = new Runnable(public void run() { }); C.Runnable r = new Runnable { public void run(){}}; D.System.out.println(new Runnable() {public void run() { }});