In JDBC, I see that Connection is an interface, which defines methods for interacting with Database.
I also know that interface contains only abstract m
An interface reference can point to any object of a class that implements this interface
i.e. see the example below:
interface Foo{
void display();
}
public class TestFoo implements Foo{
void display(){
System.out.println(“Hello World”);
}
public static void main(String[] args){
Foo foo = new TestFoo();
foo.display();
}
}