javalistcollectionssynchronizationapache-commons-collection

Difference between Apache commons-collections' synchronizedList() and java.util.Collections.synchronizedList()


Any difference between java.util.Collections.synchronizedList() and Apache commons-collections' ListUtils.synchronizedList().

Any reason to prefer one over the other?


Solution

  • The java doc clearly states,

    This method is just a wrapper for Collections.synchronizedList(List).

    So no difference.