Java Exceptions in Brief

Students in this class have such varied backgrounds that there are some coding skill quite familiar to some and yet others that are new.
I will go over exceptions only as needed for the class.

Go to java.lang and look at the Summaries. See Interface Summary, then Class Summary, then Exception Summary and Error Summary. Note things like ArrayIndexOutOfBoundsException and NoClassDefFoundError and NullPointerException (ever seen these?!)

Java Tutorial on Exceptions. In class, we will look at

  • What is an Exception
  • The Catch or Specify Requirement (with the three kinds of exceptions) java.io is a good example for a package with lots of Classes that have lots of methods which throw Exceptions. Why would this be?