单选题 在java中,以下哪个关键字用在方法上声明跑出异常
单选题 下列异常声明中,正确的是()
A、
public void throws IOExceptionfun(){}
B、
public void fun throws IOExceptionfun(){}
C、
public void fun() throws IOExceptionfun{}
D、
public void fun() throws IOExceptionfun,throws SQLException{}
单选题 在异常处理时,如释放资源关闭文件等由下那个语句完成。
单选题 以下关于编译异常说法正确的是()
C、
编译异常如果产生,必须处理 要么捕获,要么抛出
单选题 String s="itcast";则s.substring(3,4)返回的字符串是()
单选题 以下关于String类的常见操作中,哪个是方法会返回指定字符ch在字符串中最后一次出现位置的引索
B、
int lastIndexOf(int ch)
C、
int indexOf(String str)
D、
int lastIndexOf(String str)
单选题 通过调用Exception对象的()方法 可以返回异常信息字符串。
D、
printStackTrace(printStreams)