This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array object ?

 
Fox Hu
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Vijayakumar Arya
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic