Hello Deon
If you do not know what exceptions or errors to catch then use this:
try{
int a = 1, b = 0;
int c = a / b;
} catch (Throwable e) {
System.out.println(e.getClass().getName());
}
This will tell you what exception was caught.
I'm going to install my JDK now, so please, mind the bugs.