3

I am searching for something like javadocs for the arrays in Java. What methods, what their signatures and what they do. I got this problem, because IDE (Intelij) if you click on the called method of the array with pressed cntrl, shows nothing.

0

2 Answers 2

6

See the Java Language Specification §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 class Object and throws no checked exceptions. The return type of the clone method of an array type T[] is T[].

  • All the members inherited from class Object; the only method of Object that is not inherited is its clone method.

Sign up to request clarification or add additional context in comments.

1 Comment

thank you, this the one that I was searching for, bad that I havn't noticed it by myself(
2

There is no such javadoc.

But arrays don't have any other method than the one in java.lang.Object. They have a single, read-only attribute: length. They implement Serializable and Cloneable.

For useful methods regarding arrays, look at the class java.util.Arrays.

2 Comments

No, it doesn't change its signature. If it did, it wouldn't override it.
ou, you are right, signature contains only parameters and the method name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.