You are viewing a single comment's thread. Return to all comments →
why do we need to print - System.out.println(ae.getClass().getName()+": "+ae.getMessage()); and not directly the exception object?
Seems like cookies are disabled on this browser, please enable them to open this website
Java Exception Handling (Try-catch)
You are viewing a single comment's thread. Return to all comments →
why do we need to print - System.out.println(ae.getClass().getName()+": "+ae.getMessage()); and not directly the exception object?