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



Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

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

Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

Answer / brahma

Driver vendor provides implementation classes for these
interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

How a database driver can be loaded with jdbc 4.0 / java 6?

0 Answers  


How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?

0 Answers  


What are the different types of statements in jdbc?

0 Answers  


What are the common JDBC problems that you got and how do you solved them?

0 Answers   Wipro,


What is JDBC Connection isolation levels?

0 Answers  






How can I manage special characters when I execute an insert query?

0 Answers  


What are the components of jdbc?

0 Answers  


How can you know about drivers and database information ?

0 Answers  


How to test jdbc connection to sql server?

0 Answers  


Explain about DSN?

0 Answers   Infosys,


How many isolation levels are supported in JDBC and what are they?

1 Answers  


What is the difference between execute, executeQuery, executeUpdate?

0 Answers  


Categories