File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc" Watch "jdbc" New topic


Soumayajit Hazra

Joined: Nov 13, 2006
Posts: 8
what is the difference in using Class.forName or DriverManager.registerDriver(...)
Wei Dai
Ranch Hand

Joined: Jun 22, 2005
Posts: 86
>what is the difference in using Class.forName or >DriverManager.registerDriver(...)
Usually in the static init driver code of Class.forName will call DriverManager.registerDriver(...) meothod. You should use Class.forName.
I agree. Here's the link:
subject: jdbc