I can get the size(length) of any array (let a[]) by a.length. please tell me what is this "length" word actually signifies, where it is defined in java and what is its actual definition ?

Questions by parik_ashish

Showing Answers 1 - 1 of 1 Answers

Sonal Mehta

  • Mar 20th, 2006
 

Regardless of what type of array you?re working with, the array identifier is actually a handle to a true object that?s created on the heap. The heap object can be created either implicitly, as part of the array initialization syntax, or explicitly with a new expression. Part of the heap object (in fact, the only field or method you can access) is the read-only length member that tells you how many elements can be stored in that array object. The ? []? syntax is the only other access that you have to the array object.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions