Question: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
+ Explanation
+ Report
Total Preview: 1312

Copyright © 2024. Powered by Intellect Software Ltd