Thursday, September 08, 2005

Suppose U have a data collection (say a "arraylist"). U want to make sure that no one else can modify it. i.e. U want to make it immutable. How will U do it?