Science, asked by Srikarchintu4491, 1 year ago

Which one you will prefer in Java between Array and Array Listes for storing object and why?

Answers

Answered by Achyu3
0
Array.Clone() method makes a clone of the original array. It returns an exact length array. Array.Clone() method does not require the destination array to be existed as it creates a new one from scratch Array.CopyTo() copies the elements from the original array to the destination array starting at the specified destination array index. Note that, this adds elements to an already existing array. Array.CopyTo() require a destination array to be existed before and it must be capable to hold all the elements in the source array from the index that is specified to copy from the source array.

hopw it help you, pls mark me as a brainlist
Similar questions