What is the difference between aggregation and composition?

If the containing object is responsible for the lifecycle of the child object, and the child object is destroyed when the containing object is destroyed, then that is COMPOSITION.

If the containing object has a reference to the child object (but it is a full dependency) and the child object can live on after the containing object has been destroyed, then that is AGGREGATION.

http://www.jguru.com/faq/view.jsp?EID=51520