You are viewing a single comment's thread. Return to all comments →
can't it be possible that , we print the required output by using the object of exception we passed in the catch block .
Ex :
try {
}catch(InputMismatchException i) { System.out.println(i); }
above program print Exception with the causal , but the required output is without causal ?
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 →
can't it be possible that , we print the required output by using the object of exception we passed in the catch block .
Ex :
try {
}catch(InputMismatchException i) { System.out.println(i); }
above program print Exception with the causal , but the required output is without causal ?