java 匿名类的一道题

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 implement any interfaces, it is still possible to define an anonymous inner class that is an immediate subclass of Super that implements multiple interfaces.

Answer:A D

 

阅读更多
个人分类: Java SL-275教学
上一篇寝室经典语录
下一篇中国单身者的十大旅游圣地
想对作者说点什么? 我来说一句

JAVA界面的一道

2008年01月09日 1KB 下载

没有更多推荐了,返回首页

关闭
关闭
关闭