πŸ“Š JAVA
Q. 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.
πŸ’¬ Discuss
βœ… Correct Answer: (A) To fill an array with a specified value.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
93%
Success Rate