• Post Reply Bookmark Topic Watch Topic
  • New Topic

Object reference for arrays  RSS feed

 
Francis Yip
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String s1 = new String "abc";
// s1 has the object "abc" reference - the address of "abc".
String [] array1 = new String [10];
// Please tell me what array1 is having, is the first address of array1[0] or something else which is holding a 10 String addresses?
Thanks in advance
 
paul wheaton
Trailboss
Posts: 22537
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm gonna move this thread to "Java in General (beginner)"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!