在哪里可以找到 Java 数组的源代码? [英] Where can I find the source code for Java arrays?
本文介绍了在哪里可以找到 Java 数组的源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在哪里可以找到java数组的源代码?
Where can I find the source code for java arrays?
示例:
double[] arr=new double[20];
任何维度的所有数组都实现了 Cloneable
和 Serializable` 接口.我搜索了源代码,但找不到此代码.
All array's with any dimension implements Cloneable
and Serializable` interface. I searched the source code but couldn't find the code for this.
推荐答案
看看 this 的解释.但是基本上数组类型是内置在 jvm 中的,你需要分析你正在运行的 jvm 的源代码才能真正知道它是如何工作的.
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.
这篇关于在哪里可以找到 Java 数组的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文