title: How to Print Bind Variables in Java Prepared Statements.
body: <p>Suppose My query is like this, Here conn is connection Object :</p>
  
  <pre><code>String countrycode=91;//it is dynamic in my case
  String query = "update tblemployeedata set countrycode='?';
  PreparedStatement pstmtUpdate = conn.prepareStatement(query);
  pstmtUpdate.setString(1,countrycode);
  </code></pre>
  
  <p>Now after setting above country code, I want to see my actual query formed like</p>
  
  <pre><code>update tblemployeedata set countrycode='91';
  
  pstmtUpdate.executeUpdate();
  </code></pre>