Professional Documents
Culture Documents
What is a JVM?
JVM is Java Virtual Machine which is a run time environment for the compiled
java class files.
B C
When a class inherits from more than class, it will lead to the diamond problem
- say A is the super class of B and C & D is a subclass of both B and C. D inherits
properties of A from two different inheritance paths ie via both B & C. This
leads to ambiguity and related problems, so multiple inheritance is not allowed
in Java.
Exa mple
A has show() method.