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; public class Main { /**/* w ww.j a v a 2 s .c o m*/ * Closes provided result set without throwing an exception. */ public static void close(ResultSet resultSet) { if (resultSet == null) { return; } try { resultSet.close(); } catch (SQLException sex) { // ignore } } }