List.copyOf creates an unmodifiable copy of a list, preventing external modifications.
Using List.copyOf ensures that any attempt to modify the returned list results in an UnsupportedOperationException. This is particularly useful in e-commerce systems to prevent changes to a list of products once it’s shared with clients.