Is Class.forName(Drivername) the only way to load a driver? Can I instantiate the Driver and use the object of the driver?

Joe Sam Shirah

Yes, you can use the driver directly. Create an instance of the driver and use the connect method from the Driver interface. Note that there may actually be two instances created, due to the expected standard behavior of drivers when the class is loaded.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.