What is the output of this program?
class A has been declared final hence it cannot be inherited by any other class. Hence class B
does not have member i, giving compilation error.
output:
$ javac inheritance.java
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
i cannot be resolved or is not a field
Submit Your Solution hear: