How can you register a driver ?

Java related questions and answers
deepak singh
Posts: 686
Joined: Fri Sep 30, 2016 4:19 pm

How can you register a driver ?

Postby deepak singh » Fri Oct 07, 2016 3:46 pm

How can you register a driver ?

rameshkhd
Posts: 1279
Joined: Sun Aug 28, 2016 10:45 am

Re: How can you register a driver ?

Postby rameshkhd » Fri Oct 07, 2016 3:46 pm

Ans). To register a database driver, we can follow one of the 4 options:
- By creating an object to driver class
- By sending driver class object to DriverManager.registerDriver( ) method
- By sending the driver class name to Class.forName( ) method
- By using System class getProperty( ) method.


Return to “Java”

Who is online

Users browsing this forum: No registered users and 1 guest