asked 145k views
3 votes
Assume that "a" is an array of integers. What, if anything, is wrong with this Java statement:

a[a.length] = 10;

asked
User ZZZ
by
8.0k points

1 Answer

3 votes

Answer:

What is wrong is the statement is asking about the length before declaring the length.

Step-by-step explanation:

answered
User Sulay
by
8.4k points

No related questions found