Using Throws and Throw Statements in Java