• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc

 
Soumayajit Hazra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference in using Class.forName or DriverManager.registerDriver(...)
 
Wei Dai
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>what is the difference in using Class.forName or >DriverManager.registerDriver(...)
Usually in the static init driver code of Class.forName will call DriverManager.registerDriver(...) meothod. You should use Class.forName.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic