InterviewSolution
Saved Bookmarks
| 1. |
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 |
|
Answer» 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. |
|