Need help in Java Exception : How to use Exception in java. I have two different Exception here which is "e" and "e1" and I do not understand about  this part. What is the difference between "e" and "e1".

Code 1:

    catch(ClassNotFoundException | SQLException e){
        System.out.println(e);

Code 2:

    catch (Exception e1) {
            label.setText("SQL Error");
            System.err.println(e1);

