Cohesion - rahul00773/JavaConcepts GitHub Wiki

For every component a clear well defined functionality is defined. Then that component is said to be follow high cohesion. High cohesion is a good programming practice. Because it has several advantages.

1. Without effecting remaining components we can modify any component.Hence enhancement will become easy.
2. It promotes reusability of the code.(Wherever validation is required we can resume the same validate server late without rewriting)
3. It improves maintainability of the application

Note: Loosely coupling and high cohesion are good programming practices.