Assume the below are java.lang
unless I specify otherwise:
- Casting: ClassCastException
- Arrays: ArrayIndexOutOfBoundsException, NullPointerException
- Collections: NullPointerException, ClassCastException (if you're not using autoboxing and you screw it up)
- IO: java.io.IOException, java.io.FileNotFoundException, java.io.EOFException
- Serialization: java.io.ObjectStreamException (AND ITS SUBCLASSES, which I'm too lazy to enumerate)
- Threads: InterruptedException, SecurityException, IllegalThreadStateException
- Potentially common to all situations: NullPointerException, IllegalArgumentException
You would do well to look at Java site's Package Summary pages. Here's one: http://java.sun.com/j2se/1.4.2/docs/api/java/io/package-summary.html