InterviewSolution
Saved Bookmarks
| 1. |
Write a java program of try catch |
|
Answer» statements that may CAUSE an exception }TRY { //statements that may cause an exception } catch (exception(type) e(object)) { //error handling code }You should not DIVIDE a number by zero I'm out of try-catch BLOCK in Java.catch(Exception e){ //This catch block catches all the exceptions } |
|