What is aggregation and composition ?
Answer / balbir
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 continue to
exist. Therefore, a University can be seen as a composition
of departments, whereas departments have an aggregation of
professors. In addition, a Professor could work in more
than one department, but a department could not be part of
more than one university
| Is This Answer Correct ? | 6 Yes | 1 No |
What is difference between protected and private?
Define interface in java?
we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is equlas() and hashcode() contract in java? Where does it used?
what is the difference b/w design pattern and architecture
What is externalizable interface?
Which class should you use to obtain design information about an object
What is a singleton factory?
Why do we need strings in java?
What exactly is methodology?
Can private method static?