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

Does the JDBC-ODBC Bridge work with Microsoft J++?

0 Answers  


What is jdbc driver manager?

0 Answers  


Is it possible to connect to multiple databases simultaneously?

0 Answers  


What is encrypted connection?

0 Answers  


How to check jdbc driver version in websphere?

0 Answers  






Which package is used for jdbc application?

0 Answers  


What are 4 drivers available in JDBC? At what situation are four of the drivers used?

0 Answers  


How do I insert an image file (or other raw data) into a database?

0 Answers  


Does JDBC support stored procedures?

0 Answers  


What are the different types of 2 tier and 3 tier architecture ?

2 Answers   Honeywell,


Is jdbc a web technology?

0 Answers  


What are the basic exceptions in jdbc?

0 Answers  


Categories