title: Print SQL query from PreparedStatement to console in Java
body: <p>I am using <code>PreparedStatements</code>.</p>
  
  <p>When I am try to print the query by using <code>stmt.toString();</code>, it prints following to console, </p>
  
  <pre><code>com.zaxxer.hikari.proxy.PreparedStatementJavassistProxy
  </code></pre>
  
  <p>How can I print my query?</p>