If using Java SE 6 or higher, you do not need to register the drivers and can skip this step. Java SE 6 and higher automatically registers the drivers with the JDBC Driver Manager.
Registering the drivers tells the JDBC Driver Manager which driver to load. The drivers are registered by using the Class.forName() method and specifying the driver class name as the argument. This example registers the Microsoft SQL Server driver: