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 |
wahts is mean by primary key and unique key?
What is getconnection method in java?
What are four types of JDBC driver?
What is serialization and deserialization in java programming?
please tell me the name and url path for type-4 driver ?
Can you create an index on sex column where there is M or F?
What are the different types of lockings in jdbc?
What are the different classes through which JDBC represents statements?
How do I disallow NULL values in a table?
What is JDBC Savepoint? How to use it?
How to insert an image or raw data into database?
What is the full form of jdbc and what is its purpose?