多项选择题
可能抛出SecurityException 异常的操作是哪些? ()
A.访问本地文件系统
B.打开除运行Applet 的主机外的另一个主机的Socket
C.在运行环境中执行另一个程序
D.试图读取不存在的文件
点击查看答案&解析
相关考题
-
多项选择题
遍历全部数组元素的方法有?()
A.使用for 循环
B.使用迭代器Iterator
C.使用枚举器Enumeration
D.使用增强型for 循环 -
多项选择题
1. class HorseRadish { 2. // insert code here 3. protected HorseRadish(int x) { 4. System.out.println("bok choy"); 5. } 6. } 7. class Wasabi extends HorseRadish { 8. public static void main(String [] args) { 9. Wasabi w = new Wasabi(); 10. } 11. } 分别插入到第 2 行,哪两项允许代码编译并产生"bok choy" 输出结果?()
A. // just a comment
B. protected HorseRadish() { }
C. protected HorseRadish() { this(42);}
D. protected HorseRadish() { new HorseRadish (42);} -
多项选择题
1. class Synapse { 2. protected int gap() { return 7; } 3. } 4. 5. class Creb extends Synapse { 6. // insert code here 7. } 分别插入到第 6 行,哪三行可以编译?()
A. int gap() { return 7; }
B. public int gap() { return 7; }
C. private int gap(int x) { return 7; }
D. protected Creb gap() { return this; }
E. public int gap() { return Integer.getInteger ("42"); }
