IllegalStateException

As the name indicates, this exception is thrown when the programmer is doing an operation that is illegal at the present moment (but legal at some other time or context). That is, in appropriate time a method is called, the JVM throws this exception. Examples for IllegalStateException are many in Java. Let us explain with …

IllegalStateException Read More »