题目
A.return Marshal.GetExceptionForHR(CustomException.COR_E_ARGUMENT);
B.return CustomException.COR_E_ARGUMENT;
C.Marshal.ThrowExceptionForHR(CustomException.COR_E_ARGUMENT);
D.throw new CustomException(“Argument is out of bounds”);
第1题
运行下面的程序时,会产生()。 public class Test{ public static void main(String args[ ] ) { int x =0; int y = 2/x; int z[ ] = {1,2,4,6}; int p=z[4]; } }
A.ArrayIndexOutOfBoundsExcePtion异常
B.NumberFormatException异常
C.ArithmeticException异常
D.ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常
第2题
运行下面的程序时,会产生()。 public class Test{ public static void main(String args[ ] ) { int x =0; int y = 2/x; int z[ ] = {1,2,4,6}; int p=z[4]; } }
A.ArrayIndexOutOfBoundsExcePtion异常
B.NumberFormatException异常
C.ArithmeticException异常
D.ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常
第3题
定义一个类名为MyClass的类,并且该类可被所有类访问,那么该类的正确声明应为()
A、private class MyClass extends Object
B、class MyClass extends Object
C、public class MyClass
D、protected class MyClass extends Object
第4题
A.Databasedatafiles
B.Controlfiles
C.Onlineredologs
D.Databasepfiles
E.Archivedredologs
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!