R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to sort a list in Java?

  • (A) Collections.order()
  • (B) List.sort()
  • (C) Collections.sort()
  • (D) List.order()
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collections.sort()` is a static method used to sort lists.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.