

MCQOPTIONS
Saved Bookmarks
1. |
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» E. | |