0 / 60 seg.

How do you handle multiple exceptions in a single catch block in Java?

try {
    // code that might throw multiple exceptions
} catch (IOException | SQLException ex) {
    ex.printStackTrace();
}