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