Oct 26

This post is also available in: German

IllegalStateException will be thrown by a method when the object is in a state which does not allow furter calls, eg:

Scanner scanner = new Scanner (System.in)

while (scanner.hasNext()){

scanner.close(); // close of scanner


After close of scanner can method scanner.hasNext() not executed anymore; an IllegalStateExcetion will be thrown

  • Print
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • Add to favorites
  • RSS
  • Blogosphere
  • email
  • PDF
  • Wikio
  • Technorati
  • Digg
  • DZone

Leave a Reply

preload preload preload
http://www.wikio.de Blog Top Liste - by TopBlogs.de Blogverzeichnis - Blog Verzeichnis bloggerei.de Bloggeramt.de Software
Webbhotell Top Blogs