Vidyalelo
Java Programming · Q29

Array

Programming · Java Programming · question 29

Q29

What is the purpose of the Arrays.fill() method in Java?

A.
To fill an array with a specified value.
Answer
B.
To find the number of elements in an array.
C.
To copy elements from one array to another.
D.
To sort the elements of an array.

Answer: Option A

Solution

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