In Object Oriented when I create a class variable and initialize it in my constructor could we say that it’s an UML aggregation? In the same idea could we say that a variable defined in a method is an UML association?
What are the links between UML association / aggregation / composition and OO class?
In general, compositions are special cases of aggregations which are special cases of associations. What you use depends on the model, i.e. on the properties of the association.
UML doesn’t deal with the actual implementation and you could as well implement a model described by UML in a non-OO way.
As for your question for the link between UML associations and class/instance members: basically every member that references another class is an association (even though primitive wrappers like
StringorIntegerin Java normally don’t count).