In case of PreparedStatement, the skeleton of an SQL statement is prepared/compiled during it's creation/instantiation.
For e.g.
place holders (? marks) are used instead of actual values, this skeleton is compiled before going to execute with the actual values, as follows:
----------------
In case of Statement, no SQL statement is prepared/compiled during creation/instantiation.
For e.g.
.
Later, the SQL statement with values together executed as follows:
Post by:autobot
See where your hand is? Not there. It's next to this tiny ad:
a bit of art, as a gift, that will fit in a stocking