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 ?");
Answers were Sorted based on User's Feedback
Answer / brahma
Driver vendor provides implementation classes for these
interfaces.
for example: oracle
all the methods implemented in OracleStatement class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / brahma
Driver vendor provides implementation classes for these
interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
what are the drawbacks of JDBC? explain briefly?
How do I find whether a parameter exists in the request object?
Describe the steps needed to execute a sql query using jdbc.
What are the different classes through which JDBC represents statements?
Which package contains jdbc api?
How to set NULL values in JDBC PreparedStatement?
What is jdbc and odbc in java?
When do we get java.sql.SQLException: No suitable driver found?
Is jdbctemplate thread safe?
Can resultset be null in java?
What is jdbc architecture?
commit() and rollback() methods are defined in which interface?