• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling classforname twice

 
Steven Rodeo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happens when do a classforname("jdbc...driver") twice with two different drivers and then excecute a connection
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Class.forName with as many classes as you like, JDBC drivers or others - it has no impact on JDBC functionality.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See also this recent discussion:
http://www.coderanch.com/t/487022/JDBC/java/Which-Driver-will-used
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic