214k views
13 votes
Why is it necessary to declare an array in Java? Choose the best answer.

It tells the computer to begin calculating the values.
It tells the computer the beginning address in memory.
It tells the computer about the new variable name,
It tells the computer to locate the value in the array.

User Yonili
by
3.8k points

2 Answers

7 votes

Importance of array in Java

Following are some important points about Java arrays. Since arrays are objects in Java, we can find their length using the object property length. Java array can be also be used as a static field, a local variable or a method parameter. The size of an array must be specified by an int or short value and not long.

User Foch
by
4.1k points
5 votes

Answer:

It tells the computer to begin calculating the values

Step-by-step explanation:

User Christian Doucette
by
4.5k points