This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can any one....  RSS feed

 
chetan jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body tell me whats the impact the following --


Class.forName("Driver1");
Class.forName("Driver2");

error or exception or code will work fine...
if yes which driver will be loaded ... first or second...

thanks in advance ....
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both drivers will be loaded. If they support different JDBC URLs then they will both be accessible. If the both support the same url then only the first will be called.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!