试题详情
- 单项选择题 package foo; public class Outer { public static class Inner { } } Which statement is true?()
A、 Compilation fails.
B、 An instance of the Inner class can be constructed with “new Outer.Inner()”.
C、 An instance of the Inner class cannot be constructed outside of package foo.
D、 An instance of the Inner class can be constructed only from within the Outer class.
E、 From within the package foo, and instance of the Inner class can be constructed with “new Inner()”.
- B
关注下方微信公众号,在线模考后查看
热门试题
- Which statemen
- 1. public&ensp
- 移位和按位运算符有哪些作用?()
- 写一个函数,求一个字符串的长度,在mai
- 下面哪个类不能直接读取磁盘文件()
- 内部框架用于在主框架内部显示一系列子框架
- 以下关于框架和其他窗口之间的关系中,错误
- 现有两个文件:A &ensp
- 如果没有布局管理器,那么组件如何排列?(
- Assume the&ens
- Your web
- 同一个包的子类能否访问父类的保护级成员变
- 1. import&ensp
- Which the thre
- 用sin(x)≈x-x^3/3!+x^5
- 一个完整的URL地址由()端口和文件四部
- public class&e
- Given thatQ
- 请输入星期几的第一个字母来判断一下是星期
- A class