Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Java
10.5K+ articles
Java-Functions
4.1K+ articles
Difference Between
3.6K+ articles
Java Programs
1.9K+ articles
School Programming
1.4K+ articles
Java-lang package
403+ articles
java-basics
320+ articles
Java-Exception Handling
53+ articles
Exception Handling
32+ articles
java-Throwable
12+ articles
Java-Exceptions
84 posts
Recent Articles
Popular Articles
How to Resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException?
Last Updated: 05 April 2024
The java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException occurs in Java applications when there is a runtime condition that cannot find a class definition at runti...
read more
Java
Java-Exceptions
Picked
How to Fix a java.lang.StringIndexOutOfBoundsException?
Last Updated: 06 March 2024
In Java, String index out of bound is the common runtime exception that can occur when we try to access or manipulate the string using the invalid index. It can typically ...
read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java Errors
How to Handle a java.lang.ArithmeticException in Java?
Last Updated: 21 February 2024
In Java programming, the java.lang.ArithmeticException is an unchecked exception of arithmetic operations. This means you try to divisible by zero, which raises the runtim...
read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java 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
Exception Handling
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java Examples
How to Handle a java.lang.NegativeArraySizeException in Java?
Last Updated: 16 February 2024
In Java, NegativeArraySizeException is the pre-defined class that can be used to represent the unchecked exception. It is a subclass of the java.lang package, and it can b...
read more
Java
Java-Exceptions
Java Programs
Picked
Java Examples
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 issue explicitly with a piece o...
read more
Java
Java-Exceptions
Java-Exception Handling
Java Programs
Picked
Java Examples
Best Practices to Handle Exceptions in Java
Last Updated: 27 May 2025
Exception Handling is a critical aspect of Java programming, and following best practices for exception handling becomes even more important at the industry level, where s...
read more
GBlog
Java-Exceptions
Java Error - All illegal Modifier Combinations For Methods w.r.t Abstract
Last Updated: 11 January 2022
In Java, we can apply a variety of modifiers to classes, methods, blocks, and variables and each one has a different use case and all of these primarily define how and whe...
read more
Java
Java-Exceptions
How to Handle java.lang.UnsatisfiedLinkError in Java?
Last Updated: 23 September 2021
Java.lang.UnsatisfiedLinkError is a subclass of LinkageError Class. When Java Virtual Machine(JVM) did not find the method Which is declared as "native" it will throw the...
read more
Java
Java-Exceptions
Java Programs
Picked
Blogathon
Blogathon-2021
OverlappingFileLockException in Java with Examples
Last Updated: 30 September 2021
An OverlappingFileLockException is thrown when attempting to acquire a lock that overlaps an existing or pending lock held by this process.This exception is thrown by the ...
read more
Java
Java-Exceptions
Picked
java.io.UnsupportedEncodingException in Java with Examples
Last Updated: 05 December 2022
The java.io.UnsupportedEncodingException occurs when an unsupported character encoding scheme is used in java strings or bytes. The java String getBytes method converts th...
read more
Java
Java-Exceptions
Picked
Heap and Stack Memory Errors in Java
Last Updated: 12 September 2021
Memory allocation in java is managed by Java virtual machine in Java. It divides the memory into stack and heap memory which is as shown below in the below media as follow...
read more
Java
Java-Exceptions
Picked
NotSerializableException in Java with Examples
Last Updated: 05 January 2022
Serialization in Java is a mechanism of writing the state of an object into a byte-stream. It is mainly used in Hibernate, RMI, JPA, EJB, and JMS technologies.The reverse ...
read more
Java
Java-Exceptions
Picked
ClosedChannelException in Java with Examples
Last Updated: 16 February 2022
The class ClosedChannelException is invoked when an I/O operation is attempted on a closed channel or a channel that is closed to the attempted operation. That is if this ...
read more
Java
Java-Exceptions
Java Programs
Picked
StreamCorruptedException in Java
Last Updated: 05 August 2022
The class StreamCorruptedException of ObjectStreamException is an exception thrown when control information that was read from an object stream violates internal consisten...
read more
Java
Java-Exceptions
Picked
1
2
3
4
5
6
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 !