Home > Articles > Programming > Java

  • Print
  • + Share This
From the author of


Java packages are a convenient way to group code, especially when all of the classes in the package are used together (cohesive), and they can be used without other packages (coupled).

Coupling and cohesion are convenient terms for discussing the dependencies between units of software, whether lines of code in a method, methods in a class, or classes in a package. By decreasing coupling and increasing cohesion, you can save yourself a lot of grief in future maintenance.

  • + Share This
  • 🔖 Save To Your Account