Tagged articles
4 articles
Page 1 of 1
21CTO
21CTO
Feb 17, 2020 · Fundamentals

Master Java Exceptions: Types, Handling, and Best Practices

This article explains Java exceptions, classifies them into Errors and Exceptions (including RuntimeException and CheckedException), describes how to handle them with try‑catch, throw, and throws, clarifies the difference between throw and throws, and offers practical best‑practice guidelines.

Best PracticesCheckedExceptionError
0 likes · 5 min read
Master Java Exceptions: Types, Handling, and Best Practices
Java Captain
Java Captain
Feb 20, 2018 · Fundamentals

Understanding and Proper Use of Checked Exceptions in Java

This article explains Java's exception hierarchy, distinguishes checked from unchecked exceptions, illustrates common pitfalls of overusing throws, and provides best‑practice guidelines for handling, documenting, and wrapping checked exceptions to improve API design and application robustness.

APIDesignBestPracticesCheckedException
0 likes · 14 min read
Understanding and Proper Use of Checked Exceptions in Java