Here you can find the source of closePreparedStatement(Statement ps)
public static void closePreparedStatement(Statement ps)
//package com.java2s; //License from project: Open Source License import java.sql.*; public class Main { public static void closePreparedStatement(Statement ps) { try {/*from w w w . ja va 2 s. com*/ if (ps != null) ps.close(); } catch (SQLException e) { e.printStackTrace(); } } }