전에 마지막으로 밖으로 인쇄 이유를 다음 코드 예를 들면 :궁금 캐치 예외
try{
//here happens a SQLException
}
catch(SQLException e){
throw new InstantiationException();
}
finally{
System.out.println("This is the finally");
}
코드의이 비트의 결과는 최초이자 유일한이 InstantiationException
를 출력 한 후 "This is the finally"
을 인쇄 할 것입니다 ...
[The finally Block] (http://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html)을 읽어보십시오. – mre
'throw'는 새 스레드를 시작해야합니다. '캐치 '에서 그것을하는 것이 이치에 맞습니까? –