Java View all facts Glossary Help |
syntactic unit > scoping unit > block > nested block |
nested block comparison table |
Subject | have syntax | be part of | have purpose | is a subtopic of |
---|---|---|---|---|
finally block | // a try-catch-finally statement showing the finally block in bold | try-catch-finally statement | to clean up internal state or to release non-object resources, such as open files stored in local variables, whether or not an exception has occurred. | Exception Handling |
initialization block | to be executed before any method for a class or instance | Classes | ||
try block | // a try-catch-finally statement showing the try block in bold | try-catch-finally statement | to contain statements that might throw an exception | Exception Handling |
Next block: body Up: block Previous block: else block