Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block > nested block > try block
Next nested blockfinally block    Upnested block    Previous nested blockinitialization block   

try block comparison table
Subject have syntax be part of has definition have purpose is a subtopic of is a kind of
nested block  A block that is nested inside another blockto create a new scope and/or to create a compound statementStatements and Expressionsblock
try block
// a try-catch-finally statement showing the try block in bold
try{
statements
}
catch (exception_type1 identifier1) {
statements
} catch (exception_type2 identifier2) {
statements
...
} finally {
statements
}
try-catch-finally statement to contain statements that might throw an exceptionException Handlingnested block

Next nested blockfinally block    Upnested block    Previous nested blockinitialization block