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.
for example: oracle
all the methods implemented in OracleStatement class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is jdbc driver?
State the three different ways in which you can create a table?
What is database deadlock ?
What is difference between jdbc and odbc?
How can we set null value in jdbc preparedstatement?
What is a jdbc driver and how many jdbc drivers are available?
What are the steps required to execute a query in jdbc?
Is jdbc a middleware?
What is SQL Warning? How to retrieve SQL warnings in the JDBC program?
What are the 4 types of jdbc drivers?
What are different types of ResultSet?
How does jdbc work?
What are the jdbc drivers in java?
How do we load the drivers?
Why “no suitable driver” error occurs?