Vidyalelo
Java Programming · Q21

Array

Programming · Java Programming · question 21

Q21

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

A.
To find the maximum element in an array.
B.
To search for an element in an array.
C.
To sort the elements of an array.
Answer
D.
To reverse the elements of an array.

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board