Java aggregation

Ads

 
 

Share on Google+Share on Google+

samar
Java aggregation
1 Answer(s)      7 years ago
Posted in : Java Interview Questions
Please Explain, what is the aggregation?
Ads
View Answers

October 23, 2010 at 6:24 PM


Hi,

Here is the answer.

Aggregation is a relationship between two classes that is best described as a "has-a" and "whole/part" relationship. It is a more specialized version of the association relationship.

The aggregate class contains a reference to another class and is said to have ownership of that class. Each class referenced is considered to be part-of the aggregate class

Aggregation differs from ordinary composition in that it does not imply ownership. In composition, when the owning object is destroyed, so are the contained objects. In aggregation, this is not necessarily true.

For example, a university owns various departments (e.g., chemistry) , and each department has a number of professors. If the university closes, the departments will no longer exist, but the professors in those departments will. Therefore, a University can be seen as a composition of departments, whereas departments have an aggregation of professors.

Thanks.


Ads









Related Tutorials/Questions & Answers:
Java aggregation
Java aggregation  Please Explain, what is the aggregation
The aggregation in Java - Java Beginners
The aggregation in Java  Hi, What is aggregation? Thanks   Hi Friend, Aggregation is a type of association that specifies a whole/part relationship between the aggregate and a component part. Thanks
Advertisements
aggregation
aggregation  explin me about the types of aggregation in OOT
Version of com.axibase>aggregation-log-filter dependency
List of Version of com.axibase>aggregation-log-filter dependency
Version of com.axibase>aggregation-log-filter-log4j dependency
List of Version of com.axibase>aggregation-log-filter-log4j dependency
Version of com.axibase>aggregation-log-filter-log4j2 dependency
List of Version of com.axibase>aggregation-log-filter-log4j2 dependency
Version of com.axibase>aggregation-log-filter-logback dependency
List of Version of com.axibase>aggregation-log-filter-logback dependency
Version of com.axibase>aggregation-log-filter-test dependency
List of Version of com.axibase>aggregation-log-filter-test dependency
java puestion
java puestion  is aggregation is oop principle
Maven Dependency aggregation-log-filter >> 0.1.3
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.1.3 in your project
Maven Dependency aggregation-log-filter >> 0.2.1
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.2.1 in your project
Maven Dependency aggregation-log-filter >> 0.4.10
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.4.10 in your project
Maven Dependency aggregation-log-filter >> 0.4.13
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.4.13 in your project
Maven Dependency aggregation-log-filter >> 0.4.6
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.4.6 in your project
Maven Dependency aggregation-log-filter >> 0.4.9
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.4.9 in your project
Maven Dependency aggregation-log-filter >> 1.0.5
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version1.0.5 in your project
Maven Dependency aggregation-log-filter >> 1.0.8
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version1.0.8 in your project
Maven Dependency aggregation-log-filter >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version1.1.1 in your project
Maven Dependency aggregation-log-filter >> 1.1.4
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version1.1.4 in your project
Maven Dependency aggregation-log-filter-log4j >> 1.0.5
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j version1.0.5 in your project
Maven Dependency aggregation-log-filter-log4j >> 1.0.8
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j version1.0.8 in your project
Maven Dependency aggregation-log-filter-log4j >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j version1.1.1 in your project
Maven Dependency aggregation-log-filter-log4j >> 1.1.4
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j version1.1.4 in your project
Maven Dependency aggregation-log-filter-log4j2 >> 1.0.5
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j2 version1.0.5 in your project
Maven Dependency aggregation-log-filter-log4j2 >> 1.0.8
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j2 version1.0.8 in your project
Maven Dependency aggregation-log-filter-log4j2 >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j2 version1.1.1 in your project
Maven Dependency aggregation-log-filter-log4j2 >> 1.1.4
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter-log4j2 version1.1.4 in your project
Maven Dependency aggregation-log-filter >> 0.1.1
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.1.1 in your project
Maven Dependency aggregation-log-filter >> 0.1.2
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.1.2 in your project
Maven Dependency aggregation-log-filter >> 0.1.4
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.1.4 in your project
Maven Dependency aggregation-log-filter >> 0.1.5
You should include the dependency code given in this page to add Maven Dependency of com.axibase >> aggregation-log-filter version0.1.5 in your project