What are the most common exceptions that occur when you are writing a program using AWT?
Created May 4, 2012
While in development mode, you may get a NullPointerException if you try to load an image before its ImageObserver is realized, among other possibilities. You may get ClassCastExceptions if you've made bad assumptions about data being passed and you didn't get with instanceof, or a SecurityException if you're trying to do something in an applet that it shouldn't.
[FAQ Manager Note] A few others you can also get: