The standard way of handling the possibility of exceptions is to place the code that might cause an exception in a <code>try</code> block, and place any code that must be executed, whether or not there is an exception, into a <code>finally</code> block.