Which one do you prefer between methods of loading and registering a driver ..?

We have got two methods of loading and registering a driver. i would like to know which one could be preferable class.forName(sun.jdbc.odbc.JdbcOdbcDriver) or Driver d= new Driver(sun.jdbc.odbc.JdbcOdbcDriver) Driver Manager.register Driver(d) ?

Showing Answers 1 - 1 of 1 Answers

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions