Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

aggregation and segregation in java

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is aggregation and segregation in java
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sitaram,
Aggregation is having a bunch of objects in another object. For example, you aggregate a bunch of items in an ArrayList.

Segregation typically deals with separation of concerns. For example, you segregate presentation from the view in MVC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic