高等继续教育 / Java程序设计
正确率:100%
题型描述: 多选题
如果func(int i)方法可能抛出异常,那么下面声明哪些是正确的( )。
A.public int func(int i) throw Exception
B.public int func(int i) throws IOException
C.public int func(int i) throws Exception
D.public int func(int i) throw IOException
如果func(int i)方法可能抛出异常,那么下面声明哪些是正确的( )。
A.public int func(int i) throw Exception
B.public int func(int i) throws IOException
C.public int func(int i) throws Exception
D.public int func(int i) throw IOException
参考答案:
佳题速递: