We all know that we use arrayName.length to find out the length of the array. But from where this "length" field comes? We also know that arrays are similar to objects, to the extent we can invoke some methods also. But all such methods, fields are declared where?
I also searched the Object class, I found no "length" field specified...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Boy, this is a FAQ if there ever was one. I don't know how many times I'm heard this question. It's unfortunate, because for someone just starting out, "length" is very likely to be the first member-variable-looking thing they encounter, and it's incredibly frustrating that they can't find it in the API documentation.