Statement, PrepareStatement and Callable all these are
interfaces. Thought it is a interface how come we are
creating objects and calling methods("preparestatement()")
in it. In which class this method is defined.
Please let me know. Thanks in advance.
example:
PreparedStatement pre = con.prepareStatement(
"UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");
Answer Posted / brahma
Driver vendor provides implementation classes for these
interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
When do we use execute method in java jdbc?
Explain the difference between rowset vs. Resultset in jdbc?
What is difference between statement and preparedstatement in jdbc?
How do I find whether a parameter exists in the request object?
What is the function of drivermanager class?
What is the most common example type 1 driver?
What is setautocommit in jdbc?
Explain about the drive manager class working?
Where is mysql jdbc driver located?
Which interface handles transaction management in jdbc?
What is jdbc driver?
What is the execute method in java?
How do I insert an image file (or other raw data) into a database?
What is the fastest type of JDBC driver?
Which is faster jdbc or odbc?