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 ?");
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / brahma
Driver vendor provides implementation classes for these
interfaces.
| Is This Answer Correct ? | 0 Yes | 0 No |
After creating conntinpool in weblogic how to write the code in programe where i can use that pool object in the programe connecting to the database and how to debug programe withou eclipse
What is the JDBC syntax for using a literal or variable in a standard Statement?
What is JDBC Transaction Management and why do we need it?
What is isolation level? How to set it?
How do I connect to jdbc?
Why do we need jdbc?
Write a program JDBCcode forfetching student database with SQL.
MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......
How to check jdbc connection in linux?
What is resultset in jdbc with example?
How to update a resultset programmatically?
What are the exceptions in jdbc?