Answer to Question #20025 in Java | JSP | JSF for nohra

Question #20025
3-8. An array a has 30 elements; what is the index of its last element?
1
Expert's answer
2012-12-05T10:00:04-0500
Theindex of last element is 29, because first index = 0.

In JAVA when you create an array with N elements, last index always N-1, first index 0, array.lengthl = N;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS