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 |
State the three different ways in which you can create a table?
what is the current version of JDBC? and explain its features?
What is an SQL Locator?
What happens if connection is not closed in jdbc?
What does the jdbc resultsetmetadata interface?
What are stored procedures? How to call them?
What is a datasource in java?
what is metadata and it's use?
How many locking systems are there in jdbc?
What is jdbc driver in java?
What is execute(), executeUpdate() and executeQuery() methods?
How do java applications access the database using jdbc?