JAVA Exception异常总结(JAVA Exception面试笔试总结)

这方面主要有如下几种类型的题目:java 1 try中throw一个exception,可否直接catch? public void method1(){ try{ throw new StringIndexOutOfBoundsException("method1 catch"); }catch(Exception e){ System.out.println(e.getMe
相关文章
相关标签/搜索