What will be the output of the program?


			  		

Loading

Choose the correct option.

What will be the output of the program?

class A  {      
public A(int x){ }
}
class B extends A { }
public class test {
public static void main (String args []) {
A a = new B();
System.out.println("complete");
}
}

 

A. It compiles and runs printing nothing
B. Compiles but fails at runtime
C. Compile Error
D. Prints “complete”