Here you can find the source of close(ResultSet rs)
public static void close(ResultSet rs)
//package com.java2s; import java.sql.ResultSet; import java.sql.Statement; public class Main { public static void close(ResultSet rs) { try {/*from www .j a v a 2 s.com*/ if (rs != null) { rs.close(); } } catch (Exception e) { } } public static void close(Statement st) { try { if (st != null) { st.close(); } } catch (Exception e) { } } }