Java - Exception Handling
Given this code, what is the best way to handle exceptions?
try {
// code that may throw IOException or SQLException
} catch (Exception e) {
System.out.println("Exception caught");
} catch (IOException e) {
System.out.println("IO Exception caught");
} catch (SQLException e) {
System.out.println("SQL Exception caught");
}