Question 755: Which constructs an anonymous inner class instance?
tcs
wipro
infosys
general
aptitude
inner-classes
D is correct. It defines an anonymous inner class instance, which also means it creates an instance of that new anonymous class at the same time. The anonymous class is an implementer of theRunnableinterface, so it must override therun()method ofRunnable.A is incorrect because it doesn't override therun()method, so it violates the rules of interface implementation.B and C use incorrect syntax.