R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `Collections.unmodifiableList(list)` return?

  • (A) A copy of the list
  • (B) A synchronized list
  • (C) An immutable view of the list
  • (D) A shallow clone of the list
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
It returns an unmodifiable view of the list (any changes will throw exception).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.