Configure Maven to always clean when running package/install

Configure-Maven-to-always-clean-when-running-package-install

Overview When developing Java applications with Maven, you need to package and deploy them many times. Most commonly, every time there is a change in code, you will package and deploy the app to the development environment again. The problem with this approach is for some reason, Maven doesn’t always recompile the code despite code … Read more

Java equals and hashCode Tutorial

Java equals and hashCode Tutorial

Overview This tutorial shows you what equals and hashCode are and how to properly override them. If you have written in Java long enough, you will learn that using the equals method instead of == is the right way to assert equality. This is because the == operator compares the two objects’ memory addresses. The … Read more