Vidyalelo
Java Programming · Q14

Array

Programming · Java Programming · question 14

Q14

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.
Answer
B.
Use the clone() method of arrays.
C.
Use the copy() method of arrays.
D.
None of the above

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board