JDBC DriverManager Class

Advertisements

Prev Tutorial Next Tutorial

Drivermanager Class of JDBC

The DriverManager class acts as an interface between user and drivers. It keeps track of the drivers that are available and handles establishing a connection between a database and the appropriate driver. The DriverManager class maintains a list of Driver classes that have registered themselves by calling the method DriverManager.registerDriver().

Methods of DriverManager Class

methodDescription
1public static void registerDriver(Driver driver)Used to register the given driver with DriverManager.
2public static void deregisterDriver(Driver driver):Used to registered the given driver (drop the driver from the list) with DriverManager.
3public static Connection getConnection(String url):Used to establish the connection with the specified url.
4public static Connection getConnection(String url,String userName,String password):Used to establish the connection with the specified url, username and password.

Prev Tutorial Next Tutorial

WIFI CCTV Camera

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

wifi cctv camera

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223
wifi cctv camera

Wifi CCTV Camera RS:1200 to 2499.

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements