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
Is jdbc an api?
Explain the life cycle of jdbc.
Explain creation of statement object with connection method create method with help of an example.
What are the different types of statements in jdbc?
What is hbm xml?
How to insert an image or raw data into database?
What is the use of dialect?
What is isolation level? How to set it?
How many ways can you update a result set?
What is a statement in java?
What do you mean by batch processing in jdbc?
What is preparedstatement in jdbc?
Which database is used for java?
Why do we use jdbc statements?
what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();