in Education by

Which of this method is used to make all elements of an equal to specified value? (a) add() (b) fill() (c) all() (d) set() This question was posed to me in an international level competition. My doubt is from Java.util in portion java.util – The Collections Framework of Java Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

Please log in or register to answer this question.

1 Answer

0 votes
by

Right choice is (b) fill() For explanation: fill() method assigns a value to all the elements in an array, in other words, it fills the array with specified value.

Related questions

0 votes
asked Oct 25, 2021 in Education by JackTerrance
0 votes
asked Oct 23, 2021 in Education by JackTerrance
0 votes
asked Oct 24, 2021 in Education by JackTerrance
...