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)


http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/DriverManager.html

Comments

Popular posts from this blog

defining functions clojure

How to retain the space of the td after hidding it in Jquery

Integrating Struts2 with Spring Security using Custom Login Form