Association :
Association is a relationship between two objects. Association can be one-to-one, one-to-many, many-to-one, many-to-many.
Example: A Student and a Faculty are having an association.
Composition:
Without existing container object if there is no chance of existing contained objects then the relationship between container object and contained object is called composition which is a strong association.
Example: In examination a single question can have multiple answer and answer cannot belong to multiple questions whenever questions object destroys automatically all the answer objects will be destroyed that is without existing question object there is no chance of existing dependent object hence these are strongly associated and this relationship is called composition.
Aggregation :
Without existing container object if there is a chance of existing contained objects such type of relationship is called aggregation. In aggregation objects have weak association.It is also called a HAS-A relationship.
Example:Within a department there may be a chance of several professors will work whenever we are closing department still there may be a chance of existing professor object without existing department object the relationship between department and professor is called aggregation where the objects having weak association.