Q. 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.
  • (D) To reverse the elements of an array.
πŸ’¬ Discuss
βœ… Correct Answer: (C) To sort the elements of an array.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
129
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
84%
Success Rate