+ 3

What is the importance of exception handling in practical implementation of live projects in java

Exception handling

22nd May 2022, 5:37 PM
😇🌟SWATI🌟😇
😇🌟SWATI🌟😇 - avatar
3 Respostas
+ 3
Exception handling is a methodology of handling Runtime errors regarding Memory not available Accessing object which is null Accessing elements of array which is out of range Negative array size Input output of iostream Jdbc database trying to connect is not found Database is not open Database connecting jar file missing Incorrect username password Servlet or jsp trying to open a service which is not available etc Exception once handled can be applied to all methods and blocks in class Java is providing 2 powerful superclasses to handle any kind of exceptions 1 Exception 2 Throwable
23rd May 2022, 5:11 PM
sree harsha
sree harsha - avatar
+ 5
https://www.sololearn.com/Course/Java/?ref=app An exception is a problem that occurs during program execution. Exceptions cause abnormal termination of the program. Exception handling is a powerful mechanism that handles runtime errors to maintain normal application flow. An exception can occur for many different reasons. Some examples: - A user has entered invalid data. - A file that needs to be opened cannot be found. - A network connection has been lost in the middle of communications. - Insufficient memory and other issues related to physical resources.
23rd May 2022, 3:32 AM
Nobody
+ 4
you can call yourself a good programmer if you know how to use and where to use exception handling. In live project implementation it is far considered in order to make a app or web user friendly. instead of throwing errors like NullException or IndexOutOfBound you can send user a pretty good response using try catch handling.
22nd May 2022, 5:49 PM
Davinder Kumar
Davinder Kumar - avatar