-
A.
2 2
-
B.
3 3
-
C.
Runtime Error
-
D.
Compilation Error
Correct Option: DExplanation:
Class contains a private member variable j, this cannot be inherited by subclass B and does not have access to it.
output:
$ javac inheritance.java
Exception in thread “main” java.lang.Error: Unresolved compilation problem:
The field A.j is not visible