开发者

Is there a .java source file for arrays in the JDK? [duplicate]

开发者 https://www.devze.com 2023-03-01 03:54 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Source 开发者_开发技巧code for java array
This question already has answers here: Closed 11 years ago.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消