具体参考:www.thinkerso.comthinker搜索 publicclassUsingException { publicstaticvoidmain(String[]args) { try { throwException(); } catch(Exceptione) { System.err.println("Exceptionhandledinmain"); } doesNotThrowException(); } publicstaticvoidthrowException()throw