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
What is the use of statement in jdbc?
How does a file store compare with a jdbc store?
What is the benefit of having jdbcrowset implementation?
State the different connection methods used for creating different types of sql.
What is jdbc and odbc in java?
What causes the "No suitable driver" error?
How to insert an image or raw data into database?
What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
How does jdbc work?
What is ojdbc?
What is phantom read and which isolation level prevents it?
Why isn't the java.sql.DriverManager class being found?
What is difference between java.util.Date and java.sql.Date?
what happen if we set JDBC string to NULL?