Multi-Threading in Java
Executing multiple tasks in Java together is a concept of multitasking, there are two types of multi-tasking – Process Based …
Executing multiple tasks in Java together is a concept of multitasking, there are two types of multi-tasking – Process Based …
Inside a Java method if any exception occurs and there is no exception handling code then the Exception object will …
In Java 1.7v following two concepts are introduced to enhance exception handling in Java. try with Resources Let’s consider the …
IllegalThreadStateException is a child class of RunTimeException, Hence it is an unchecked exception. IllegalThreadStateException was explicitly raised by the programmer …
NumberFormatException is the child class of IllegalException which is the child class of RunTimeException, Hence it is an unchecked Exception. …
IllegalArgumentException is a child class of RunTimeException, Hence it is an unchecked exception. IllegalArgumentException is raised explicitly either by the …
ExceptionInInitializerError is a child class of Error in Java, Hence it is an unchecked exception. ExceptionInInitializerError is automatically raised by …
NoClassDefFoundError is a child class of Error in Java, Hence it is an unchecked Exception. NoClassDefFoundError is automatically raised by …
StackOverflowError is the child class of Error in Java, Hence it is an unchecked Exception. StackOverflowError is automatically raised by …
ClassCastException is the child class of RunTimeException, hence it is an unchecked exception, This exception is automatically Raised by JVM …