I am new to Java.
I am trying to understand interfaces.
I understand that an interface is a way to replace multiple
inheritance(C++). I understand that an interface is just a set of
static final variables and methods that are just declared. The
implementation is done in the class that implements the interface.
I can not declare an object of the interface type, but I can use a
method of the class that implements the interface. Is my
understanding OK up to here ?
Now, I am playing with JDBC and there is there a group of
:Connection, Statement, DataBaseMetaData, PreparedStatement,
CallableStatement, Driver and DriverManager.
Well I understand that the thing is going this way:
Driver driver =
Connect connect = driver.connect(dbURL, p);
DataBasaMetaData db = connect.getMetaData();
Well, it looks that the interfaces returning other interfaces.
Which is the class that implements them ?