Monday, December 3, 2007

Diff - Array of Objects & Collections

Array of Objects - Stores object references.i.e, when you change object value anywhere , the changes are reflected in arrays

Collections - stores object copies. - once object is added to the collection, any changes on the object will not reflect in collection. Applicable to all collection - List/Vector/Set/Map etc

No comments: