Which of the following is a correct interface?
interface A { void print() { }; }
abstract interface A { print(); }
abstract interface A { abstract void print() { };}
interface A { void print();}
Suppose A is an interface, B is a concrete class with a default constructor that implements A.
Which of the following is correct?
A a = new A();
A a = new B();
B b = new A();
B b = new B();