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

What is the limitation of PreparedStatement and how to overcome it?

0 Answers  


What is JDBC Statement?

0 Answers  


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

0 Answers   Wipro,


Diff. types of triggers..

4 Answers   Logica CMG,


Explain the importance of drivermanager.

0 Answers  






What is the return type of execute, executequery and executeupdate?

0 Answers  


Which interface is responsible for transaction management in jdbc?

0 Answers  


What is an encrypted internet connection?

0 Answers  


i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?

8 Answers   HSBC,


Explain the JDBC Architecture?

0 Answers  


What is JDBC RowSet? What are different types of RowSet?

0 Answers  


What happens if connection is not closed in jdbc?

0 Answers  


Categories