---
title: "What is difference between Checked Exception and Unchecked Exception?"  
description: "What is difference between Checked Exception and Unchecked Exception?"  
author: "Anonymous User"  
published: 2015-04-23  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2425/what-is-difference-between-checked-exception-and-unchecked-exception  
category: "java"  
tags: ["exception handling", "java"]  
reading_time: 1 minute  

---

# What is difference between Checked Exception and Unchecked Exception?

**Checked Exception**The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException, SQLException etc. Checked exceptions are checked at compile-time.\
**Unchecked exception**The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at compile-time rather they are checked at runtime\

## Answers

### Answer by Anonymous User

**Checked Exception**The classes that extend Throwable class except RuntimeException and Error are known as checked exceptions e.g.IOException, SQLException etc. Checked exceptions are checked at compile-time.\
**Unchecked exception**The classes that extend RuntimeException are known as unchecked exceptions e.g. ArithmeticException, NullPointerException, ArrayIndexOutOfBoundsException etc. Unchecked exceptions are not checked at compile-time rather they are checked at runtime\


---

Original Source: https://www.mindstick.com/interview/2425/what-is-difference-between-checked-exception-and-unchecked-exception

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
