A
Q. What will be the output of the following Java program?
final class A
{
int i;
}
class B extends A
{
int j;
System.out.println(j + " " + i);
}
class inheritance
{
public static void main(String args[])
{
B obj = new B();
obj.display();
}
}
- Correct Answer - Option(D)
- Views: 19
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.