Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DriverManager.getConnection()

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What DriverManager.getConnection() does, if i don't give class.forName() ?
 
Kalai Selvan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic