Here you can find the source of close(ResultSet resultSet)
public static void close(ResultSet resultSet)
//package com.java2s; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Main { /**//from w w w. j a v a 2 s . c om * Closes statement safely without throwing an exception. */ public static void close(Statement statement) { if (statement == null) { return; } try { statement.close(); } catch (SQLException sex) { // ignore } } /** * Closes result set safely without throwing an exception. */ public static void close(ResultSet resultSet) { if (resultSet == null) { return; } try { resultSet.close(); } catch (SQLException sex) { // ignore } } }