File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes DriverManager.getConnection() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DriverManager.getConnection() " Watch "DriverManager.getConnection() " New topic


kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1404
What DriverManager.getConnection() does, if i don't give class.forName() ?
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
If none of the driver which recognizes the connection string passed in
the getConnection() method is loaded, then it will throw an exception.....

Kalai Selvan T.
I agree. Here's the link:
subject: DriverManager.getConnection()
jQuery in Action, 3rd edition