Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is aggregation and composition ?



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

Post New Answer

More Core Java Interview Questions

What is the difference between static and global variables and also define what are volatile variables?

0 Answers   Flextronics, Hexaware,


What is the purpose of tostring() method in java?

0 Answers  


explain me with a code snippet about the generation and handling of null point exceptions.

1 Answers  


Which is the best sorting technique in java?

0 Answers  


Where is stringbuffer stored?

0 Answers  


If set accepts only one argument then how can it compare two objects to avoid duplicates

5 Answers  


Can Exception handling we can handle multiple catch blocks?

0 Answers   PUCIT,


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

6 Answers   HP, SparkTG,


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

1 Answers   Rolta, TCS,


How to synchonise HashMap

4 Answers   IBM,


What are the advantages of exception handling in java?

0 Answers  


Give me some null interfaces in java?

0 Answers  


Categories