Oct 10

This post is also available in: German

Today some boring theory, as you know already we have 2 sources; (non-)RuntimeExceptions, respectively errors. Unfortunately for SCJP you need to be able to distinguish between them and which exception belongs to which source:

Java Virtual Machine (JVM) exceptions/ errors

exceptions, which are thrown via JVM, eg

  • ArrayIndexOutOfBoundsException
  • ClassCastException
  • NullPointerException
  • ExceptionInInitializerError
  • StackOverflowError
  • NoClassDefFoundError

programatical exceptions/ errors (RuntimeExceptions)

exceptions, which are thrown or caused by programmer, eg

  • IllegalArgumentException
  • IllegalStateException
  • NumberFormatException
  • AssertionError

The next days I will explain a little bit more about the different kind of errors/exceptions and how to distinguish between them.

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

One Response to “Exceptions XIV – source”

  1. Ehlers Wolfgang says:

    Eine wirklich klasse Seite. Komme jetzt öfter mal reingucken

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