What will be the output of the following code?abstract class X{int b;abstract void print();}class Y extends X{int a;void print(){System.out.println(a);}}class Test_Questions {public static void main(String args[]){X obj = new Y();obj.b = 6;obj.print();}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here