R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `Collections.reverse(list)` do?

  • (A) Sorts the list
  • (B) Removes duplicates
  • (C) Reverses the order of elements
  • (D) Creates a new reversed list
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Collections.reverse()` reverses the order of elements in the provided list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.