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
  • 156,572
  • 25
  • 250
  • 300

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,876
  • 3
  • 14
  • 18