|
General rule of exception handling is that you should catch exception if you need to so that you can correct the problem causing the exception or you have better way of showing the exceptional case. This applies with main method as well.
When you are catching an exception you should answer why are you catching the exception as well.
__________________
dont worry newbie, we got you covered.
|