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 are different types of ResultSet?
What is a JDBC 2.0 DataSource?
What is the difference between execute, executeQuery, executeUpdate?
What is the function of setautocommit?
What is the execute method in java?
What is jdbc databasemetadata interface?
Is jdbctemplate thread safe?
What are the jdbc drivers in java?
What is serialization and deserialization in java programming?
Define preparedstatement.
What is the difference between executing, executequery, executeupdate in jdbc?
Explain about multiple implementations and drive manager?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
How can you know about drivers and database information ?
Where is jdbc url mysql?