22 August 2017

Java Exceptions: Are You Handling Them Right?


An Exception in programming signifies an exceptional condition at some point in the program execution. It is used when the exceptional condition can be handled better elsewhere rather than where it is encountered. Consider the following examples: Failure to open a configuration file can be better handled higher up in the code, maybe by using an alternative configuration file location. Accessing an array item outside the bounds of the array signifies a program bug. Happy debugging! An XML parsing error should be brought to the notice of the user so the XML file can be corrected. The program running out...

Read the full article: Java Exceptions: Are You Handling Them Right?


No comments:

Post a Comment