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 |
How a database driver can be loaded with jdbc 4.0 / java 6?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
What are the different types of statements in jdbc?
What are the common JDBC problems that you got and how do you solved them?
What is JDBC Connection isolation levels?
How can I manage special characters when I execute an insert query?
What are the components of jdbc?
How can you know about drivers and database information ?
How to test jdbc connection to sql server?
Explain about DSN?
How many isolation levels are supported in JDBC and what are they?
What is the difference between execute, executeQuery, executeUpdate?