I'm using this link as my basis link as The example given seemed simplest to start with from the other examples on the net. Can someone please explain why:
I can understand the implementation and the interface codes. But why are they returning an interface?
Also, while they're checking for string equals "jdbc", in both cases they return the same statements. This is where I get confused. Shouldn't they be returning different implementations of the same interface?
Thanks!