我正在为 Java 中的数组搜索类似 javadocs 的内容。什么方法,他们的签名是什么,他们做了什么。我遇到了这个问题,因为 IDE (Intelij) 如果您使用按下的 cntrl 单击数组的调用方法,则什么也不会显示。
最佳答案
参见 Java 语言规范 §10.7. Array Members :
The members of an array type are all of the following:
The public final field
length
, which contains the number of components of the array.length
may be positive or zero.The public method
clone
, which overrides the method of the same name in classObject
and throws no checked exceptions. The return type of the clone method of an array typeT[]
isT[]
.All the members inherited from class
Object
; the only method ofObject
that is not inherited is itsclone
method.
关于Java:数组类型的javadocs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27593322/