This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
It's not a secret anymore!