This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DriverManager.getConnection() " Watch "DriverManager.getConnection() " New topic
Author

DriverManager.getConnection()

kri shan
Ranch Hand

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

Joined: Jul 07, 2004
Posts: 79
Hi,
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: DriverManager.getConnection()