0

When we pass an Object[] to method, do we actually copy included objects or we just pass the array of references to those objects?

Dave Newton
  • 158,873
  • 26
  • 254
  • 302

1 Answers1

4

You're just passing a reference to the array. Neither the array nor any objects in it are copied.

musical_coder
  • 3,886
  • 3
  • 15
  • 18