Explain the different ways to register a driver?

Answers were Sorted based on User's Feedback



Explain the different ways to register a driver?..

Answer / bhoopesh alladi

By using the DriverManager.registerDriver() method , and
while loading of the driver and registering the driver
within a single method execution, that is

Class.forName(String DriverName)

Is This Answer Correct ?    3 Yes 0 No

Explain the different ways to register a driver?..

Answer / chandrarekha

loading a driver can be done manually by Class.forName
(....) and DriverManager.registerDriver(...) and also
programatically by
java -Djdbc.drivers=sun.jdbc.odbc.jdbc.... <.java filename>

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JDBC Interview Questions

How do we call a stored procedure from jdbc?

0 Answers  


How to connect html page to database using jdbc?

0 Answers  


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

0 Answers  


What are the differences between stored procedure and functions?

0 Answers  


Explain the locking system in jdbc & its types?

0 Answers  






How to update a resultset programmatically?

0 Answers  


What is JDBC Batch Processing and what are it’s benefits?

0 Answers  


Why would you use setautocommit(false) in jdbc?

0 Answers  


What are the advantages of using jdbc datasource?

0 Answers  


What type of driver called is pure Java driver?

3 Answers   Vertex,


How do I find whether a parameter exists in the request object?

0 Answers  


What are the types of statements in jdbc?

0 Answers  


Categories