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 ?");
Answer Posted / 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 |
Post New Answer View All Answers
What is database connection pooling? Advantages of using a connection pool?
please tell me the name and url path for type-4 driver ?
How to connect multiple database in jdbc?
How many locking systems are there in jdbc?
What do you understand by DDL and DML statements?
Explain the difference between inner and outer join ?
Can resultset be null in java?
What is 2 phase commit?
What are different parts of a url?
Give an example for execution of sql statement.
What is statement and resultset in jdbc?
What are restrictions on triggers?
How do I stop nullpointerexception?
Why should we close database connections in java?
Which is best database for java?