A i understand it, interfaces cannot be instantiated because they have no implemented methods..Therefore, how can we have the following code:
Connection con = null;
con = DriverManager.getConnection(connectionURL );
Statement stmt = con.createStatement();
onURL ) returns a connection "object"..but objects of Connection cant exist??
Furthermore, the Connection method createStatement() is called, but i thought there could be no implementations for interface methods??
Can someone please clarify please?