• +91 9723535972
  • info@interviewmaterial.com

Java Interview Questions and Answers

Question - What is shallow copy or shallow clone in array cloning?

Answer - Cloning an array invloves creating a new array of the same size and type and copying all the old elements into the new array. But such copy is called shallow copy or shallow clone because any changes to the object would be reflected in both arrays.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners