You can remove one try
by writing it like this for example.
try {
int zero = 0;
int y = 2/zero;
Object s = null;
System.out.println(s.toString());
} catch(NullPointerException e) {
System.out.println(e);
} catch(ArithmeticException e) {
System.out.println(e);
}
This is certainly more readable, but it is not neccesarily better. That depends on your use case.
You could not do this
try {
int zero = 0;
int y = 2/zero;
Object s = null;
try {
System.out.println(s.toString());
} catch(NullPointerException e) {
System.out.println("'s' was null, creating a new 's'");
s = new Object();
}
System.out.println(s.toString());
} catch(ArithmeticException e) {
System.out.println(e);
}