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
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Java
10.2k+ articles
Java-Functions
4.1k+ articles
Java Programs
2.1k+ articles
Java-lang package
390+ articles
java-basics
310+ articles
Java Examples
230+ articles
Java Quiz
92 articles
Java-Exceptions
84 articles
Exception Handling
32 articles
java-Throwable
12 articles
Java-Exception Handling
53 posts
Popular Articles
Recent Articles
How to Handle an IOException in Java?
Last Updated: 15 February 2024
An IOException in Java occurs when we try to perform some input or output tasks and then some issues occur. Programmers need to handle this
...read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java Examples
Java - Exception Handling With Constructors in Inheritance
Last Updated: 15 November 2021
Java provides a mechanism to handle exceptions. To learn about exception handling, you can refer to exceptions in java. In this article, we
...read more
Java
Java-Object Oriented
java-inheritance
Java-Exception Handling
Blogathon
Blogathon-2021
Java Program to Use Exceptions with Thread
Last Updated: 17 November 2022
Exceptions are the events that occur due to the programmer error or machine error which causes a disturbance in the normal flow of execution
...read more
Java
Technical Scripter
Java-Exception Handling
Java Programs
Technical Scripter 2020
Similar Topics
Java
10.2k+ articles
Java-Functions
4.1k+ articles
Java Programs
2.1k+ articles
Java-lang package
390+ articles
java-basics
310+ articles
Java Examples
230+ articles
Java Quiz
92+ articles
Java-Exceptions
84+ articles
Exception Handling
32+ articles
java-Throwable
12+ articles
Java Program to Handle Runtime Exceptions
Last Updated: 17 November 2020
RuntimeException is the superclass of all classes that exceptions are thrown during the normal operation of the Java VM (Virtual Machine). T
...read more
Java
Java-Exception Handling
Java Programs
Java Program to Handle Unchecked Exception
Last Updated: 27 April 2022
Exceptions are the issues arising at the runtime resulting in an abrupt flow of working of the program. Remember exceptions are never thrown
...read more
Java
Technical Scripter
Java-Exception Handling
Java Programs
Technical Scripter 2020
Thread UncaughtExceptionHandler in Java with Examples
Last Updated: 10 June 2020
An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal fl
...read more
Java
Java-Multithreading
Java-Exception Handling
Java Quiz
Java Programs
How to avoid NullPointerException in Java using Optional class?
Last Updated: 23 May 2019
In order to learn how to avoid an error, we must first understand the error. NullPointerExceptionNullPointerException is a RuntimeException.
...read more
Java
Java-Exceptions
java-basics
Java-Exception Handling
Picked
Get name of current method being executed in Java
Last Updated: 08 November 2018
Getting name of currently executing method is useful for handling exceptions and debugging purposes.Below are different methods to get curre
...read more
Java
Technical Scripter
Java-Exceptions
Java-lang package
Java-Exception Handling
Technical Scripter 2018
Throwable getStackTrace() method in Java with Examples
Last Updated: 26 April 2023
The getStackTrace() method of Throwable class used to return an array of stack trace elements which is the stack trace information printed b
...read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
Throwable getCause() method in Java with Examples
Last Updated: 12 April 2023
The getCause() method of Throwable class is the inbuilt method used to return the cause of this throwable or null if cause can't be determin
...read more
Java
Java-Exceptions
Java-lang package
Java-Exception Handling
Java-Functions
java-Throwable
ArrayStoreException in Java
Last Updated: 10 October 2018
ArrayStoreException in Java occurs whenever an attempt is made to store the wrong type of object into an array of objects. The ArrayStoreExc
...read more
Java
Java-Exceptions
Java-Exception Handling
Using throw, catch and instanceof to handle Exceptions in Java
Last Updated: 06 February 2019
Prerequisite : Try-Catch Block in JavaIn Java, it is possible that your program may encounter exceptions, for which the language provides tr
...read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Output of Java program | Set 12(Exception Handling)
Last Updated: 06 February 2019
Prerequisites : Exception handling , control flow in try-catch-finally1) What is the output of the following program?[sourcecode language="J
...read more
Java
Java-Exceptions
Java-Exception Handling
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
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
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 !