Examveda
Examveda

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

A. To fill an array with a specified value.

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


This Question Belongs to Java Program >> Array

Join The Discussion

Related Questions on Array