Examveda
Examveda

What is the correct way to copy the elements of one array to another in Java?

A. Use a for loop to iterate through the elements and copy them one by one.

B. Use the clone() method of arrays.

C. Use the copy() method of arrays.

D. None of the above

Answer: Option A


This Question Belongs to Java Program >> Array

Join The Discussion

Related Questions on Array