What is an IllegalStateException?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is an IllegalStateException?

Rating:

An IllegalStateException is a kind of runtime exception. It is used to indicate that a method has been invoked on an object that is not in an appropriate state to perform the requested operation. This means that the method has been invoked at an inappropriate time.

Following constructors are used to represent an IllegalStateException:


  • public IllegalStateException();
    It constructs an IllegalStateException without any detailed message.

  • public IllegalStateException(String str);
    It constructs an IllegalStateException with a detailed message specified by the string str.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.