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.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Expalin the method of calling a stored procedure from jdbc.
Why is jdbc needed?
Does jdbc require oracle client?
Which type of driver is unique in jdbc?
How do I connect to jdbc?
Which is faster jdbc or odbc?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What are the jdbc api components?
What is jdbc and why is it required?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
Does jdbc use odbc?
How do java applications access the database using jdbc?
What is a datasource in java?
How do I find whether a parameter exists in the request object?
What are collection pools?