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
password, is stored in as plain text. What can I do to protect my passwords?
What class.forname will do while loading drivers of jdbc?
What is statement and preparedstatement in java?
What is jdbc thin client in oracle?
How can I write to the log used by DriverManager and JDBC drivers?
What is JDBC Transaction Management and why do we need it?
How we store procedure in oralce for callable statements in jdbc
Why resultset is used in java?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
Which database is used for java?
What is an odbc driver?
How you restrict a user to cut and paste from the html page using java programing?
Why do I have to reaccess the database for Array, Blob, and Clob data?
What is a statement?
Can I get a null resultset?