Try/Catch Block Optimization

A try block which can never throw an Exception should be as fast as a normal block.

Example:

In the code fragement below, the statements inside the try block will never throw an Exception. The try block is unnecessary and should add no overhead.

        try {
	a = i(int) 1;
        } catch (Exception e) 
                //...
        }
  

Below is the code fragment after Try/Catch Block Optimization.

	a = int 1;