Thread Priority in Java

In Java every thread has some priority, this priority can be default provided by JVM or customized priority provided by …

Read more

Thread name in Java

In Java, every thread has a name, the name can be either the default name provided by JVM or the …

Read more

Threads in Java

In Java, a thread represents an independent path of execution within a program. Threads in Java allow concurrent execution of …

Read more

try with Resources in Java

In Java 1.7v following two concepts are introduced to enhance exception handling in Java. try with Resources Let’s consider the …

Read more

NumberFormatException

NumberFormatException is the child class of IllegalException which is the child class of RunTimeException, Hence it is an unchecked Exception. …

Read more

IllegalArgumentException

IllegalArgumentException is a child class of RunTimeException, Hence it is an unchecked exception. IllegalArgumentException is raised explicitly either by the …

Read more

ExceptionInInitializerError

ExceptionInInitializerError is a child class of Error in Java, Hence it is an unchecked exception. ExceptionInInitializerError is automatically raised by …

Read more

NoClassDefFoundError

NoClassDefFoundError is a child class of Error in Java, Hence it is an unchecked Exception. NoClassDefFoundError is automatically raised by …

Read more

StackOverflowError

StackOverflowError is the child class of Error in Java, Hence it is an unchecked Exception. StackOverflowError is automatically raised by …

Read more