Does an array object explicitly contain the indexes?

后端 未结 9 2065
时光取名叫无心
时光取名叫无心 2021-02-01 16:18

Since day one of learning Java I\'ve been told by various websites and many teachers that arrays are consecutive memory locations which can store the specified number of data al

9条回答
  •  醉话见心
    2021-02-01 16:50

    On your first picture arr[0] to arr[4] are not references to the array elements. They are just illustrative labels for the location.

提交回复
热议问题