I know There are different way of reprentation for Conversion of Association,Aggregation and composition in java. But when we convert them into code(java classes) they are all represented in same manner. Like Student taught by teacher which is association will be represented with Student class having instance variable of Class Teacher.
Department has professors which is aggregation will be also be represented with Department class having instance variable (array )of Class Professors.
University has departments which is composition will be also be represented with University class having instance variable (array )of Class department.
So all are reprented in same manner in terms of code. So what benefits terms Association,Aggregation and composition provide to developer?