What does `Collections.unmodifiableList()` return?

Java Professional Easy

Java Professional — Easy

What does `Collections.unmodifiableList()` return?

Key points

  • The method does not create a new copy of the list
  • It does not make the list thread-safe
  • It does not sort the elements of the list

Ready to go further?

Related questions