Java anonymous class

zhaozj2021-02-16  100

142.Which two statements are true? (Choose Two) A.An anonymous inner class can be declared inside of a method. B.An anonymous inner class constructor can take arguments in some situation. C.An anonymous inner class that is a direct subclass that is a direct subclass of Object can implement multiple interfaces. D.Even if a class Super does not implement any interfaces, it is still possible to define an anonymous inner class that is an immediate subclass of Super that implements a single interface. E . Event if a class super does not implemen interfaces, IT is Still Possible To Define An Anonymous Inner Class That IS An Anonymous Inner Class That IS AN IMMEDITE SUBCLASS OF SUPER That IMPLEments MULTIPLE INTERFCES.

Answer: a d

转载请注明原文地址:https://www.9cbs.com/read-13125.html

New Post(0)