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 |
How can we retrieve the file in the oracle database?
What is the role of the jdbc drivermanager class?
How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
How do I set properties for a JDBC driver and where are the properties stored?
code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
How is jndi useful for Database connection?
Differentiate between a statement and a preparedstatement.
What does the jdbc databasemetadata interface?
How many packages are available in jdbc api?
What is difference between odbc and jdbc?
What is xe in oracle jdbc url?