> +         try {
> +             stmt = conn.createStatement();
> +             rs = stmt.executeQuery("SELECT 3+5");
> +             rs.first();
> +             System.out.println("3+5 is " + rs.getInt(1));
> +         } catch (SQLException ex){
> +             // handle any errors
> +             System.out.println("SQLException: " + ex.getMessage());
> +             System.out.println("SQLState: " + ex.getSQLState());
> +             System.out.println("VendorError: " + ex.getErrorCode());
> +             return false;
> +         } finally {
> +             // it is a good idea to release
> +             // resources in a finally{} block
> +             // in reverse-order of their creation
> +             // if they are no-longer needed

Condense this comment.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4753127

Reply via email to