Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data being retrieved even though MySQL driver is not loaded

 
RajivAwadhesh kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not able to understand how the below code works even
though I have not loaded the MySQL driver?

 
Horst Stieg
Greenhorn
Posts: 13
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are probably using a JDBC 4.0 driver.

See here:

Any JDBC 4.0 drivers that are found in your class path are automatically loaded. (However, you must manually load any drivers prior to JDBC 4.0 with the method Class.forName.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic