---
title: "What I Learned Today About Exceptions and Errors in Java"
url: https://daily.dev/posts/what-i-learned-today-about-exceptions-and-errors-in-java-sl0meyihx
source_url: https://daily.dev/posts/what-i-learned-today-about-exceptions-and-errors-in-java-sl0meyihx
type: freeform
source: "Anshika Garg"
author: "Anshika Garg"
published: 2026-06-10T08:09:32.044Z
updated: 2026-06-10T08:09:52.789Z
tags: ["java"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What I Learned Today About Exceptions and Errors in Java

**[Anshika Garg](https://daily.dev/sources/mrx5nbvcmmykhqw10wp0i)** · [@anshikagarg](https://daily.dev/anshikagarg) · 1 min read · 0 upvotes · 0 comments

## Summary

A brief introduction to the difference between Exceptions and Errors in Java. Exceptions (like IOException or NullPointerException) are recoverable problems a program can handle, while Errors (like OutOfMemoryError) represent serious issues beyond the application's control. Exceptions are further divided into Checked and Unchecked categories.

## Content

Today I learned that Exceptions and Errors in Java are not the same thing.

✅ Exceptions are problems that a program can handle, such as IOException or NullPointerException.

✅ Errors are serious issues that are usually beyond the application's control, such as OutOfMemoryError.

I also learned that Exceptions are divided into:

Checked Exceptions

Unchecked Exceptions

Understanding this distinction helped me better understand Java's error-handling mechanism.

#Java #Programming #LearningInPublic

## Similar posts on daily.dev

- [The two kinds of error](https://daily.dev/posts/the-two-kinds-of-error-zsfcltzzr) · Lobsters · 0 upvotes · 0 comments
- ["Just Make All Exceptions Unchecked"](https://daily.dev/posts/just-make-all-exceptions-unchecked--9cpptqfju) · Inside Java · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/what-i-learned-today-about-exceptions-and-errors-in-java-sl0meyihx)
