Geoff Chappell - Software Analyst
SKETCH OF HOW RESEARCH MIGHT CONTINUE AND RESULTS BE PRESENTED
try { [ statement-list ] } [ ; ] catch ( identifier ) { [ statement-list ] } [ ; ] finally { [ statement-list ] } [ ; ]
try { [ statement-list ] } [ ; ] catch ( identifier ) { [ statement-list ] } [ ; ]
try { [ statement-list ] } [ ; ] finally { [ statement-list ] } [ ; ]
The statement is in as many as three parts, one for each of the try, catch and finally keywords. The catch and finally parts are not quite optional: either may be omitted but not both. Each part provides for a statement-list in braces. The statement-list may be empty, but the braces are required. One semicolon after the closing brace is ignored. The catch keyword requires an identifier in parentheses.