How Does DriverManger -return a Connection Object

DriverManger has a static method called -static Connection getConnection(String url, String user, String password)--> Attempts to establish a connection to the given database URL.

which returns a Connection Object.
The returned Connection Object is an Interface.
Connection con=DriverManger.getConnection(String url, String user, String password)


Popular posts from this blog

Spring MVC- Redirect from one controller to another

Integrating Struts2 with Spring Security using Custom Login Form