Problem

The java.util.Collection class has a method with the following header: public static List...

The java.util.Collection class has a method with the following header:

 public static List unmodifiableList(List list)

that returns an immutable copy of the list passed in as a parameter.  The immutable copy throws an UnsupportedOperationException if you call any of the modifier methods in the List class.  Discuss the elegance of this design.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT