Home » JAVA Programming » Arrays » Question
  1. Which of this method is used to make all elements of an equal to specified value?
    1. set()
    2. add()
    3. fill()
    4. all()
    5. None of these
Correct Option: C

fill() method assigns a value to all the elements in an array, in other words, it fills the array with specified value.



Your comments will be displayed only after manual approval.