Java guides
Every published Java guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular Java guides
Most readLatest Java guides
Page 63 of 109Java Nested Try-Catch: Syntax and Pitfalls
Learn how to use nested try-catch blocks in Java, when they make sense, and how to avoid common pitfalls that hurt readability and maintainability.
Java Multi-Catch: Catch Multiple Exceptions Cleanly
Java multi-catch lets you handle multiple exception types in one catch block. See syntax, valid combinations, rethrowing, and when separate blocks are better.
Java Multiple Catch Blocks: Syntax and Use Cases
See how multi-catch works in Java, including the syntax, the exception hierarchy rule, and when separate catch blocks are clearer.
Java RuntimeException: Unchecked Exceptions Explained
This article explains Java RuntimeException, its role in the exception hierarchy, how to handle unchecked exceptions, and when to throw them.
Java Exception vs Error: Key Differences and Handling
java exception vs error: Understand the difference between Java exceptions and errors, how they relate to Throwable, and when to handle each in production code.
Java Exception Hierarchy: Checked vs Unchecked
Understand the Java exception hierarchy from Throwable to custom exceptions, including checked and unchecked rules plus practical catching and API design guidance.
Java Checked vs Unchecked Exception: Key Differences
java checked vs unchecked exception: Learn the compiler-enforced difference between checked and unchecked exceptions in Java and when to use each type for reliable err...
Java Unchecked Exceptions: Handling Runtime Failures
Learn how Java unchecked exceptions differ from checked ones, when to catch them, and how to throw them responsibly in your own code.
Java Checked Exception: Syntax and Handling
Learn how Java checked exceptions work, how the compiler enforces handling, and when to use throws versus try-catch in real code.
Java throw vs throws: Key Differences and Usage
java throw vs throws: Understand the difference between throw and throws in Java, when to use each, and how they affect exception handling in your code.