InterviewSolution
Saved Bookmarks
| 1. |
How do exceptions affect the program if it doesn't handle them? |
|
Answer» EXCEPTIONS are runtime errors. Suppose we are making an android application with java. And it all works fine but there is an exceptional case when the application TRIES to get the file from storage and the file doesn’t EXIST (This is the case of exception in java). And if this case is not handled properly then the application will crash. This will be a bad experience for users. This is the type of error that cannot be CONTROLLED by the programmer. But programmers can TAKE some steps to avoid this so that the application won’t crash. The proper action can be taken at this step. |
|