< Back
Page 7 of 7
Like this article? We recommend
Conclusion
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.
< Back
Page 7 of 7