Throwing and catching exceptions | Use local variables

Reduce unnecessary memory usage

Avoid allocating memory unnecessarily, to reduce the frequency of garbage collection cycles. This can occur, for example, when A calls B, which calls C, and A has an integer, converts it to a string so it can be passed to B, and B converts it back to an integer so that it can be passed to C. It may be that the string and the second integer object need not have been allocated if the method signature to b accepted an Integer rather than a String.
xxxx