News

Not sure what a try catch is? We explain how to use a try catch block in Java and how to write methods that throw exceptions.
Errors, exceptions, and exception handling Nothing is worse than software that crashes. Java provides a method for handling software errors through what is known as exception handling .
What are the proper ways to handle errors and cleanup now? We’ll look at three alternatives here: try-catch-finally blocks, try-with-resource statements, and cleaners. Each has its pluses and ...
Everyone who codes Java EE web applications needs to pay attention to exception handling. When a program encounters an error, developers can display friendly messages for end users, which ...
Don't let the occurrence of a RuntimeException in Java bring your code to a standstill. Here are 10 examples of how to avoid runtime exceptions in Java.
Most web frameworks I've seen handle form validation using exceptions; if the form fields or the whole form don't meet the requirements, an exception is thrown and dealt with (redirect back to the ...
Computer languages have strict rules programmers must follow in order to make their programs understood. Mistakes throw up errors, which must be fixed.
I look at this new exception class and discuss advantages of using it in this blog post and compare it to Java 7’s more general approach for handling multiple exceptions in a single catch clause.