I am getting compile time error on both the places
interface I{}
class A{}
class B implements I{}
class C extends A{}
class D{}
final class E{}
class test{
public static void main(String args[])
{
I ob1 = new A(); //Compile time error
I ob2 = new E(); //Compile time error.
I ob3 = new B();
}
}