Here you can find the source of closeAll(ResultSet rs1, Statement stmt1)
protected static void closeAll(ResultSet rs1, Statement stmt1) throws SQLException
//package com.java2s; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Main { protected static void closeAll(ResultSet rs1, Statement stmt1) throws SQLException { if (rs1 != null) { rs1.close();/*from www .j ava2 s . c om*/ } if (stmt1 != null) { stmt1.close(); } } }