Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can any one....

 
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