Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block > catch block
Next blockelse block    Upblock    Previous blockbody   

catch block comparison table
Subject have syntax be part of has definition have purpose is a subtopic of is a kind of is partitioned into
block  A syntactic unit that groups statements or makes new declarationsto create a new scope and/or to create a compound statementStatements and Expressionsscoping unitbody, nested block
catch block
// a try-catch-finally statement showing the catch blocks in bold
try{
statements
} catch (exception_type1 identifier1) {
statements
} catch (exception_type2 identifier2) {
statements
...
}
finally {
statements
}
try-catch-finally statement to catch a particular type of exceptionException Handlingblock 

Next blockelse block    Upblock    Previous blockbody