Here you can find the source of close(final PreparedStatement ps, final ResultSet rs)
static void close(final PreparedStatement ps, final ResultSet rs)
//package com.java2s; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class Main { static void close(final PreparedStatement ps, final ResultSet rs) { closePS(ps);//from w w w . ja va 2s .c o m closeRS(rs); } static void closePS(final PreparedStatement ps) { try { if (ps != null) { ps.close(); } } catch (final SQLException ignore) { // ignored } } static void closeRS(final ResultSet rs) { try { if (rs != null) { rs.close(); } } catch (final SQLException ignore) { // ignored } } }