If iam using JDBC API, do I also have to use ODBC?



If iam using JDBC API, do I also have to use ODBC?..

Answer / arvind gupta

Yes , We can . for the same we have to set desired driver.
first.

ok

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JDBC Interview Questions

Explain jdbc savepoint?

0 Answers  


What is difference between statement and preparedstatement in jdbc?

0 Answers  


What are the steps to connect to the database in java?

0 Answers  


Why are we using blob datatypes in jdbc?

0 Answers  


Which type of driver is unique in jdbc?

0 Answers  






What is createstatement method in java?

0 Answers  


Why should we close database connections in java?

0 Answers  


Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.

4 Answers   Cybermate, Hexaware,


what is rowset?

3 Answers   Marlabs,


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>......

3 Answers  


What is jdbc thin client?

0 Answers  


What is the role of jdbc drivermanager class?

0 Answers  


Categories