Do we? I have never heard of multi-level inheritance. Where did you get that quote from?
Deepak Kumar Jena wrote:We all know that Java does not support multiple inheritance rather it supports multi-level inheritance through the use of interface . . .
No, that isn't multiple inheritance. You can only extend one class. Your class in that case does not extend java.lang.Object. It extends something else which . . . extends java.lang.Object. That isn't multiple inheritance at all.
Deepak Kumar Jena wrote: . . . when we are extending from another super class automatically it results in multiple inheritance (extending two classes...java.lang.Object and xxx.xxx.xxx. . . .
Deepak Kumar Jena wrote: If you have the reference be kind enogh to forward it to me
Java 6 API wrote: Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.
Can we say like this.....!
The extends keyword is like a single inheritance ticket, when our class does not extends from any existing class it is passed to the java.lang.Object by our class as inheritance request. But as the class extends from any other class the ticket is passed to the super class rather than the class java.lang.Object. This process goes till the very super class which doesn't extends any other class and ultimately its inheritance ticket is with java.lang.Object. In this way the concept of singleton inheritance is mainteined with acquiring properties from both the classes.