1 | //close the query execution and the database |
2 | connection before exiting |
3 | stmt.close(); |
4 | conn.close(); |
5 | } |
6 | //catch any exception and print it to the |
7 | system output |
8 | catch ( Exception e) { |
9 | System.out.println (e.getMessage() ); |
10 | e.printStackTrace(); |
11 | } |
12 | } // End main |
13 | } // End class Select |