A

Admin • 825.56K Points
Coach

Q. What happens if you assign an array to another variable?

  • (A) The array is copied
  • (B) The reference is shared
  • (C) A new object is created
  • (D) Compiler error

Explanation by: Admin
Array assignment in Java passes the reference, not the values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.