Exploring the Power of the Try-Catch Block in Java