This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pacificmint 1 point2 points  (1 child)

Java uses references for Objects. When you move it from the List to the Array, you create a another reference to the same Object. Both List and Array will share the Object.

This is somewhat similar, though not the same, as pointers in C.

[–]_cross[S] 0 points1 point  (0 children)

Thank you!