试题详情
- 多项选择题 AnInterface is an interface. AnAdapter0 is a non-abstract, non-final class with a zero argument constructor. AnAdapter1 is a non-abstract, non-final class without a zero argument constructor, but with a constructor that takes one int argument. Which two construct an anonymous inner class?()
A、AnAdapter1 aa=new AnAdapter1(){}
B、AnAdapter0 aa=new AnAdapter0(){}
C、AnAdapter0 aa=new AnAdapter0(5){}
D、AnAdapter1 aa=new AnAdapter1(5){}
E、AnInterface a1=new AnInterface(5){}
- B,D
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- 1. public&ensp
- Which regular&e
- Click the
- 1. interface&e
- 下列有关UML类图的描述,错误的是哪项?
- 将50元兑换成5元、2元和1元的方法(每
- Which three
- 一般来说,列表框中包括的项目数都多于它能
- int i =&e
- 现有如F包结构: &ensp
- Applet的布局设置默认是FlowLa
- 4位反序数,设N是一个四位数,它的9倍恰
- 35.String #name="Jan
- Which two̳
- 以下描述正确的是()。
- 实用的网络程序最少需要几个线程?()
- Java语言中表达式“11”+22的结果
- 看以下代码: 如果运行以上jsp文件,
- 绘出以下函数的曲线:r=cos(2θ)r