catch()で複数の例外を許可すると、冗長なエラー処理コードの量が減少します。 は例えば、1つのキャッチブロックで複数の異なるタイプの例外処理がありますか?
try{
// some statments
}
catch(Type1Exception t1, Type2Exception t2, Type3Exception t3) { // wish if this could be allowed
/* t1, t2, t3 are children of Exception and needs same error handling then why to have different catch blocks with same piece of code */
}
http://download.oracle.com/javase/tutorial/essential/exceptions/index.html – mKorbel
@mKorbel:そして...? – mellamokb
@Closer:疑問符が表示されないので、質問を閉じる投票に投票した人は本当に理解できません。さあ、これは面白い質問です! –