posted 13 years ago
Thanks guys for your comments and observations.
First of all, the code must have been something like this:
And I was sure interfaces aren't a class but my doubt start when I saw that the compiler legally compile the assignment interface's reference (jumpable) to a Object reference (refObject), but now I'm agree with the Ogeh's answer, just there exists two types the compiler recognize: primitives types and reference types, I think the assignment is legally because at last the reference jumpable must have an object assigned (heap JVM) and then the refObject can handle this object and invoke just the Object's methods, in otherwise the refObject will be usless (have no object to manipulate), the jumpable reference just plays as a link between the refObject and the object that jumpable have assigned.
My conclusions: the interfaces aren't a class, aren't an object, and don't belong to the object's tree hierarchy.. et al., just they are a reference type to the compiler in the code above.
Thanks guys,
I hope understand my wording, english isn't my native language.