Here you can find the source of close(Connection rs)
public synchronized static void close(Connection rs) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public synchronized static void close(ResultSet rs) throws SQLException { rs.close();//from w w w .j ava 2 s . c o m } public synchronized static void close(PreparedStatement rs) throws SQLException { rs.close(); } public synchronized static void close(Connection rs) throws SQLException { rs.close(); } }