7 Replies Latest reply on Jun 29, 2007 1:35 PM by 800435

    Creating an immutable collection

      Dear all,

      I was wondering if there is a way to create an immutable collection in Java. In other words, what is the typical situation for which an optional operation (e.g., Collection.removeAll()) may throw an exception?

      Any help appreciated,