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… Read More
Tag Archives: Java-Exceptions
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… Read More
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
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… Read More
The java.io.UnsupportedEncodingException occurs when an unsupported character encoding scheme is used in java strings or bytes. The java String getBytes method converts the requested string… Read More
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… Read More
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,… Read More
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.… Read More
In the Restful Web services application, we parse a JSON request string which is then mapped to a java class. The JSON string is unmarshalled… Read More
The class StreamCorruptedException of ObjectStreamException is an exception thrown when control information that was read from an object stream violates internal consistency checks. It will… Read More
ConcurrentModificationException is a predefined Exception in Java, which occurs while we are using Java Collections, i.e whenever we try to modify an object concurrently without… Read More
ConcurrentModificationException has thrown by methods that have detected concurrent modification of an object when such modification is not permissible. If a thread modifies a collection… Read More
An unaccepted, unwanted event that disturbed the normal flow of a program is called an Exception. Most of the time exception is caused by our… Read More
java.net.ConnectException: Connection refused: connect is the most frequent kind of occurring networking exception in Java whenever the software is in client-server architecture and trying to… Read More
There are several problems been faced which are as follows: When you write an object in a file using serialization in java for the first… Read More