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 |
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What is jdbc databasemetadata interface?
Explain the importance of drivermanager.
What is the purpose of jdbc resultset interface?
What do you understand by jdbc statements?
Explain the various types of locking system in jdbc?
What should be done for auto generating primary key id in a table ?
Which type of driver provides jdbc access via one or more odbc drivers?
How many types of resultset are there in jdbc?
Which is faster jdbc or odbc?
What will happen when ResultSet is not closed?
Is jdbc and orm?