Forums Register Login

Array object ?

+Pie Number of slices to send: Send
I can use field length to get the size of an array such as
int i[] = {0,1,2} ;
then i.length will equals 3
But where does the length field come from ?
Which class does it belong to ?
+Pie Number of slices to send: Send
Hi Neal,
You need to refer the JVM specification regarding the implementation of the array objects.
Please refer this page for more info
http://java.sun.com/docs/books/vmspec/2nd-edition/html/Concepts.doc.html#16446
[ February 21, 2003: Message edited by: Vijayakumar Arya ]
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 680 times.
Similar Threads
array size
array length?
Array documentation
populating HTML tables in JSP
Please help this newbie...what's wrong with my code?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:33:17.