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.
See Where can I find the source code for Java arrays?
The poster also linked to this for OpenJDK
精彩评论