jump to navigation

Checked vs. Unchecked Exceptions June 23, 2005

Posted by javafoo in java exceptions, java interview, javanotes.
  • Checked exceptions are checked at compile time (not exactly checked, but the compiler knows will occur since they are declared as being thrown during compile time), so the compiler will crib if you don’t handle them.
  • Unchecked exceptions only occur at runtime, mostly extend RuntimeException, these can’t be checked, usually occur due to program errors, such as NullPointerException
  • There have been holy wars waged over this topic.


1. Melina - December 20, 2007

very interesting. i’m adding in RSS Reader

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

%d bloggers like this: