Two Laptop Bag*
The moose likes JDBC and the fly likes difference between different types of loading the drivers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "difference between different types of loading the drivers" Watch "difference between different types of loading the drivers" New topic
Author

difference between different types of loading the drivers

kandula chandrasekhararao
Greenhorn

Joined: May 16, 2003
Posts: 7
Hi
what is the difference between these two types of loading the drivers
Class.forName()
DriverManager.registerDriver()
by command prompt
Class.forName().newInstance()
Philip Shanks
Ranch Hand

Joined: Oct 15, 2002
Posts: 189
What you show isn't really two different ways to load a driver. I suggest that you visit this JDBC tutorial for pointers to get started.


Philip Shanks, SCJP - Castro Valley, CA
My boss never outsources or has lay-offs, and He's always hiring. I work for Jesus! Prepare your resume!
 
Don't get me started about those stupid light bulbs.
 
subject: difference between different types of loading the drivers