Exception handling | Sololearn: Learn to code for FREE!


Exception handling

Exception (error) that occurs during program execution by user input, making logic mistakes by developer, connection lost in the middle of communication etc.,

10/9/2017 1:35:53 PM


2 Answers

New Answer


Exception handing is a good practice for developer to handle the errors.


A java exception is an object that describes an exceptional(error) condition that has occured in a piece of code.. when an exceptional condition arises ,an object representing that exception is created and thrown in the method that caused the error.... Java exception handling is managed via five keywords: 1)try 2)catch 3)throw 4)throws 5)finally Also there are many java built in exceptions..