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 many locking systems are there in jdbc?
What is JDBC Connection? Explain steps to get Database connection in a simple java program.
How a database driver can be loaded with jdbc 4.0 / java 6?
what are the types of result sets in JDBC 3.0 ?
How can you tune SQL statements?
Why should we close database connections in java?
i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?
PreparedStatement is a pre compiled statement but where it's pre compiled ?
What is getconnection method in java?
Explain the life cycle of jdbc.
How many types of jdbc drivers are available?
What are the ddl statements?