Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Java Programs
1.5K+ articles
Ruby
1.2K+ articles
java-basics
334+ articles
Java-Exceptions
84+ articles
Java-Exception Handling
45+ articles
Ruby-Exception-handling
6+ articles
Exception Handling
12 posts
Recent Articles
Popular Articles
How to Use the Try and Catch Blocks in C++?
Last Updated: 23 July 2025
In C++, thetryandcatchblocks are used as a part of the exception handling mechanism which allows us to handle runtime errors. If the exceptions are not handled properly th...
read more
C++ Programs
C++
Picked
cpp-exception
Exception Handling
C++-Exception Handling
CPP Examples
How to handle a java.lang.IndexOutOfBoundsException in Java?
Last Updated: 20 February 2024
In Java programming, IndexOutOfBoundsException is a runtime exception. It may occur when trying to access an index that is out of the bounds of an array. IndexOutOfBoundsE...
read more
Java
Java Programs
Picked
Exception Handling
Java-Exceptions
Java-Exception Handling
Java Examples
How to Throw a Custom Exception in C++?
Last Updated: 23 July 2025
In C++, exception handling is done by throwing an exception in a try block and catching it in the catch block. We generally throw the built-in exceptions provided in the e...
read more
C++ Programs
C++
Picked
cpp-exception
Exception Handling
C++-Exception Handling
CPP Examples
How to Catch Floating Point Errors in C++?
Last Updated: 20 January 2026
In C++, a part of the code that may throw exceptions is enclosed in try-and-catch blocks to handle them when they arise. However, floating-point errors in C++ do not throw...
read more
C++ Programs
C++
Picked
cpp-exception
Exception Handling
C++-Exception Handling
CPP Examples
Error Handling in Apache Camel with Java
Last Updated: 28 April 2025
Error handling is a critical aspect of building robust and reliable integration solutions using Apache Camel. When dealing with diverse data sources and complex routing sc...
read more
Geeks Premier League
Exception Handling
Advance Java
Geeks Premier League 2023
How to Solve "Process out of Memory Exception" in Node.js ?
Last Updated: 03 July 2024
A "Process out of Memory Exception" in Node.js typically occurs when your application consumes more memory than is available, causing the Node.js process to crash. This is...
read more
Picked
Node.js
Exception Handling
NodeJS-Questions
Version Enhancements in Exception Handling introduced in Java SE 7
Last Updated: 12 July 2025
In this article, the enhancements made by Oracle in version 1.7, along with its implementation, has been discussed. As a part of 1.7 version enhancement, in Exception Hand...
read more
Java
Java Programs
Exception Handling
Java-Exceptions
Java-Exception Handling
Ruby | Exception handling
Last Updated: 12 October 2018
In Ruby, exception handling is a process which describes a way to handle the error raised in a program. Here, error means an unwanted or unexpected event, which occurs dur...
read more
Ruby
Exception Handling
Ruby-Exception-handling
throw vs throws
Last Updated: 05 December 2025
Exception handling in Java provides mechanisms to handle runtime errors and maintain smooth program flow. Two commonly confused keywords in this mechanism are throw and th...
read more
Misc
Java
Exception Handling
Java-Exceptions
java-basics
Different Ways to Print Exception Messages in Java
Last Updated: 23 July 2025
In Java, there are three methods to print exception information. All of them are present in the Throwable class. Since Throwable is the base class for all exceptions and e...
read more
Java
Exception Handling
Java-Exceptions
Null Pointer Exception in Java
Last Updated: 24 April 2026
A NullPointerException in Java is a RuntimeException. It occurs when a program attempts to use an object reference that has the null value. In Java, "null" is a special va...
read more
Java
Technical Scripter
Exception Handling
Java-Exceptions
Infinity or Exception in Java when divide by 0?
Last Updated: 06 February 2019
Consider the following code snippets:Java public class Geeksforgeeks{ public static void main(String[] args) { double p = 1; System.out.prin...
read more
Java
Exception Handling
Java-Exceptions