Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Java
10.5k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
C++ Quiz
140+ articles
Java Quiz
91 articles
Java-Exceptions
84 articles
Java-Exception Handling
53 articles
C++-Exception Handling
26 articles
cpp-exception
15 articles
Exception Handling
32 posts
Popular Articles
Recent Articles
How to Throw a Custom Exception in C++?
Last Updated: 08 February 2024
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-
...read more
cpp-exception
Exception Handling
C++
C++-Exception Handling
C++ Programs
Picked
CPP Examples
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 No
...read more
Exception Handling
Web Technologies
JavaScript
Picked
Node.js
NodeJS-Questions
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 une
...read more
Exception Handling
Ruby
Ruby-Exception-handling
Similar Topics
Java
10.5k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
C++ Quiz
140+ articles
Java Quiz
91+ articles
Java-Exceptions
84+ articles
Java-Exception Handling
53+ articles
C++-Exception Handling
26+ articles
cpp-exception
15+ articles
Difference Between throw and throws in Java
Last Updated: 07 December 2021
Prerequisite: Throw and Throws in JavaThe throw and throws are the concepts of exception handling in Java where the throw keyword throws the
...read more
Java
Exception Handling
Java-Exceptions
java-basics
Different Ways to Print Exception Messages in Java
Last Updated: 06 December 2021
In Java, there are three methods to print exception information. All of them are present in the Throwable class. Since Throwable is the base
...read more
Java
Exception Handling
Java-Exceptions
Null Pointer Exception in Java
Last Updated: 20 December 2024
A NullPointerException in Java is a RuntimeException. In Java, a special null value can be assigned to an object reference. NullPointerExcep
...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:[sourcecode language="Java" highlight="5-6"]public class Geeksforgeeks{ public static void main(Stri
...read more
Java
Exception Handling
Java-Exceptions
Java | Exception Handling | Question 8
Last Updated: 28 June 2021
Predict the output of the following program.[sourcecode language="Java"]class Test{ int count = 0; void A() throws Exception {
...read more
Exception Handling
Java-Exception Handling
Java Quiz
Java | Exception Handling | Question 8
Last Updated: 30 September 2018
[sourcecode language="JAVA"]class Test{ public static void main (String[] args) { try { int a = 0;
...read more
Exception Handling
Java-Exception Handling
Java Quiz
Java | Exception Handling | Question 4
Last Updated: 28 June 2021
[sourcecode language="Java"]class Base extends Exception {}class Derived extends Base {}public class Main { public static void main(String
...read more
Exception Handling
Java-Exception Handling
Java Quiz
Java | Exception Handling | Question 3
Last Updated: 28 June 2021
Output of following Java program?[sourcecode language="Java"]class Main { public static void main(String args[]) { int x = 0; in
...read more
Exception Handling
Java-Exception Handling
Java Quiz
Java | Exception Handling | Question 2
Last Updated: 28 June 2021
[sourcecode language="Java"]class Test extends Exception { } class Main { public static void main(String args[]) { try { thr
...read more
Exception Handling
Java-Exception Handling
Java Quiz
Java | Exception Handling | Question 1
Last Updated: 08 July 2021
Predict the output of following Java program[sourcecode language="Java"]class Main { public static void main(String args[]) { try {
...read more
Exception Handling
Java-Exception Handling
Java Quiz
C++ | Exception Handling | Question 2
Last Updated: 22 September 2021
What is the advantage of exception handling ?Remove error-handling code from the software's main line of code.A method writer can choose to
...read more
Exception Handling
C++ Quiz
C++-Exception Handling
C++ | Exception Handling | Question 1
Last Updated: 28 June 2021
[sourcecode language="CPP"]#include iostreamusing namespace std;int main(){ int x = -1; try { cout Inside try \n; if (x 0)
...read more
Exception Handling
C Language
C++ Quiz
C++-Exception Handling
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !