jQuery in Action, 2nd edition
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Exploring arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Exploring arrays" Watch "Exploring arrays" New topic
Author

Exploring arrays

Swapnil Sapar
Ranch Hand

Joined: Sep 29, 2003
Posts: 41
They say "Array objects have a single public variable length that gives you number of elements in the array"

Just wondering what is the name of the class which holds length variable?

I tried following exercise to find the name of the class of Arrays and explored(printed) its methods and fields using reflection.



The result shows following




Q. What is the name of class of an array? Where can we find the documentation of this (array's) class?
Q. Why can't we see mysterious variable length as field?


Am I missing something here?

[ December 25, 2004: Message edited by: Swapnil Sapar ]
[ December 29, 2004: Message edited by: Barry Gaunt ]

SCJP 1.4 (90%), SCWCD 1.4 (92%)
Swapnil Sapar
Ranch Hand

Joined: Sep 29, 2003
Posts: 41
No comments from experts ??
All the techies seem to be having gala time of X-mas.
Anyways, Merray Christmas.
Swapnil Sapar
Ranch Hand

Joined: Sep 29, 2003
Posts: 41
No comments?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Exploring arrays
 
Similar Threads
Sun Cirtification
passing array as parameter
strictfp
Question about two dimesion arrays
My Array Notes Correct Me if i'm wrong