开发者

Where can I find the source code for Java arrays? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for开发者_Go百科 books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

Where can I find the source code for java arrays?

Example:

double[] arr=new double[20];

All array's with any dimension implements Cloneable and Serializable` interface. I searched the source code but couldn't find the code for this.


Have a look at this for an explanation. But basically the array type is built-in to the jvm and you need to analyze the source code for the jvm you are running in order to truly know how it works.


Here is the javadocs for java.util.Arrays and here is the implementation of java.util.Arrays in openjdk. Google Code search is a good way to go about it.

UPDATE 1: Link updated. Posted the wrong link.

UPDATE 2: As pointed out by thilo, the jvm implementation of Array is here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜