What is the function of the copy(List dest, List src) method of the Collections class?

What is the function of the copy(List<T> dest, List<T> src) method of the Collections class?



Answer: Copies the elements from the src class to the dest class, preserving their order and position.


Learn More :

Data Structures

Learn More Multiple Choice Question :