Which one you will prefer in Java between Array and Array Listes for storing object and why?
Answers
Answered by
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
hopw it help you, pls mark me as a brainlist
Similar questions
Hindi,
7 months ago
Social Sciences,
7 months ago
Math,
7 months ago
Science,
1 year ago
Math,
1 year ago
CBSE BOARD X,
1 year ago