Collections unmodifiable collection takes a collection and


Question: Collections. unmodifiable Collection takes a Collection and returns an immutable Collection. Implement this method. To do so, you will need to use a local class (a class inside a method). The class implements the Collection interface and throws an Unsupported Operation Exception for all mutating methods. For other methods, it forwards the request to the Collection being wrapped. You will also have to hide an unmodifiable iterator.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Collections unmodifiable collection takes a collection and
Reference No:- TGS02462489

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)