7 Replies Latest reply: Jun 29, 2007 8:15 AM by 807605 RSS

    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,