Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block
Next scoping unitpackage    Upscoping unit

block comparison table
Subject omit have syntax be part of is part of has definition have purpose is a subtopic of indent carefully
body    A block that is not nested inside another blockto create a new scope and/or to create a compound statementStatements and Expressions 
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 Handling 
else blockif there is nothing to do in the false case  if statement to create a new scope and/or to create a compound statementLoops and Decision Making 
nested block    A block that is nested inside another blockto create a new scope and/or to create a compound statementStatements and Expressions 

Next scoping unitpackage    Upscoping unit