Tagged articles
3 articles
Page 1 of 1
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 7, 2021 · Fundamentals

Mastering Java Exceptions: From Basics to Best Practices

This article provides a comprehensive overview of Java's exception architecture, detailing the hierarchy of Throwable, Error, and Exception, distinguishing checked and unchecked exceptions, explaining key keywords, and offering best practices with code examples for effective error handling.

Checked ExceptionsError HandlingException Handling
0 likes · 32 min read
Mastering Java Exceptions: From Basics to Best Practices
Senior Brother's Insights
Senior Brother's Insights
Mar 25, 2021 · Fundamentals

Top 10 Java Exception Pitfalls Every Developer Should Know

This article compiles the ten most common Java exception questions, covering checked vs unchecked differences, best‑practice guidelines, variable scope in try‑catch, inconsistent null parsing errors, frequent runtime exceptions, multi‑catch syntax, constructor throws, finally‑block behavior, and why developers sometimes ignore exceptions.

Checked ExceptionsCode ExamplesJava
0 likes · 9 min read
Top 10 Java Exception Pitfalls Every Developer Should Know
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 6, 2020 · Fundamentals

When Should You Use Exceptions in Java? Best Practices Explained

This article explains the proper use of Java exceptions, distinguishing between checked and unchecked exceptions, showing when to throw them, how to design APIs that avoid misuse, and offering guidelines for documenting and handling exceptions effectively.

Checked ExceptionsException HandlingUnchecked Exceptions
0 likes · 11 min read
When Should You Use Exceptions in Java? Best Practices Explained