Question

Possible Duplicate:
Source code for java array

There is a Java source file for java.lang.Object in the OpenJDK, which surprised me a bit, but I thought it was pretty interesting.

That got me wondering whether there is a source file for arrays (which after all are types of Object). Or is their behaviour hard-wired into the JVM somehow?

If such a thing existed, I would expect a lot of the methods to be native as I'm not sure how you could make it without being completely self-referential. But I'm curious as to whether it even exists.

Was it helpful?

Solution

See Where can I find the source code for Java arrays?

The poster also linked to this for OpenJDK

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top