drawbacks of multiple inheritence due to which it is not used in JAVA
let suppose having two classes X & Y both contain a variable x,
now another class C that extends both the classes at a time want to call the variable "x" by
one of its method now JVM is confused about which value of "x" it should take from two which are
at the same level thats why we don't have the multiple inheritance in java.
In C++ they handled multiple inheritance using virtual keyword.
all non-static methods always use dynamic binding. In Java, the programmer doesn?t have
to decide whether to use dynamic binding. The reason virtual exists in C++ is so you can leave it
off for a slight increase in efficiency when you?re tuning for performance.
For read more information on Java visit to :http://www.roseindia.net/java/http://www.roseindia.net/java/language/inheritance.shtml