|
Explanation:
|
|
|
|
|
Here is a link to the documentation: click here
|
JDBCDriverObject = new DriverClass( ); // Create a driver object DriverManager.registerDriver( JDBCDriverObject ) ; |
Note: programmers often use the following shorter construct:
DriverManager.registerDriver( new DriverClass( ) ); |
DriverManager.registerDriver( new com.mysql.jdbc.Driver() ); |
DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver() ); |