+ 2

Why exceptions handling

You always do the exception handling in Java programming, may be in database. Not sure why we do the exception handling. Anyone with an idea šŸ’” please. Thanks.

17th Mar 2018, 12:39 PM
Didace Nsabimana
Didace Nsabimana - avatar
4 Answers
+ 6
https://www.sololearn.com/learn/Java/2175/?ref=app Exception handling is extremely important when runtime error occurs in a program
17th Mar 2018, 1:16 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 5
If exceptions are not handled, the whole program will crash. Good exception handling makes sure the program keeps running even though errors are encountered as there is always a backup plan in that case.
17th Mar 2018, 12:45 PM
apex137
apex137 - avatar
+ 2
so to program wont stop when an exception occures
17th Mar 2018, 12:42 PM
Jeremy
Jeremy - avatar
+ 1
Exception Handling in Java is a very interesting topic. Exception is an error event that can happen during the execution of a program and disrupts its normal flow. Java provides a robust and object oriented way to handle exception scenarios, known as Java Exception Handling . We will look into following topics in this tutorial. An exception can occur for many different reasons. Following are some scenarios where an exception occurs. A user has entered an invalid data. A file that needs to be opened cannot be found. A network connection has been lost in the middle of communications or the JVM has run out of memory. Read more:- http://crbtech.in/Java-Training/exception-handling-java/
20th Mar 2018, 5:57 AM
pranit patil
pranit patil - avatar