试题详情
多项选择题 AnInterface is an interface. AnAdapter0 is a non-abstract, non-final class with a zero argument constructor. An Adapterl 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 ai = new Anlnterface (5)) {}

  • B,D
  • 关注下方微信公众号,在线模考后查看

热门试题