Here you can find the source of closePreparedStatement(PreparedStatement pstmt)
public static void closePreparedStatement(PreparedStatement pstmt)
//package com.java2s; //License from project: Apache License import java.sql.PreparedStatement; import java.sql.SQLException; public class Main { public static void closePreparedStatement(PreparedStatement pstmt) { if (pstmt != null) { try { pstmt.close();/*from w ww.j av a2 s . c o m*/ } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } pstmt = null; } } }