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 is ojvm used for?
What is the difference between executing, executequery, executeupdate in jdbc?
Explain what should be done when a SQL exception is raised?
Give steps to connect to the db using jdbc?
What is type 4 jdbc driver?
What are the benefits of PreparedStatement over Statement?
What is CLOB and BLOB datatypes in JDBC?
Where is jdbc used?
What is resultsetmetadata?
what happen if we set JDBC string to NULL?
What are jdbc?
What is jdbc and jdbc drivers?
What should be done for auto generating primary key id in a table ?
What is JDBC Transaction Management and why do we need it?
When do we get java.sql.SQLException: No suitable driver found?