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
What are the different types of drivers under jdbc?
How can you retrieve data from the resultset using jdbc?
Give an example for execution of sql statement.
What is difference between statement and preparedstatement in jdbc?
What are the steps involved in establishing a connection using jdbc in java?
What are drivers available?
What is JDBC API and when do we use it?
What is meant by jdbc?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
Explain creation of statement object with connection method create method with help of an example.
What is represented by the connection object?
What are the differences between resultset and rowset?
What is jdbc and its advantages?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What do you mean by batch processing in jdbc?