While creating, you should aim for low coupling, i.e., dependency among modules should be less. Cohesion shows the module's relative functional strength. Coupling shows the relative independence between the modules.
which creates a new ticket, Cohesion shows the relationship within the module. Cohesion is the Object Oriented principle tight coupling in java, loose coupling in java, tight Coupling is bad programming design, loose coupling is a good programming design, classes with low cohesion are a bad programming design, high cohesion is a good programming designĬohesion in Java, If it has operations related to customer or any other entity, its low cohesion. In object oriented design, cohesion refers all about how a single class is designed. Difference Between Cohesion and Coupling, Cohesion in Java.