Exception in thread “main” java.lang.IllegalStateException

Posted: May 9, 2012 in Java


It is child class of Runtime Exception and its is unchecked. It is raised programmatically when ever a method has invoked at illegal or in appropriate time.

Example 1:

After invalidating a session we are not allowed to call getId() method, violation leads to  illegalThreadStateException.




Exception in thread “main” java.lang.IllegalStateException


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s