Overridden and overloaded methods in Java

Just a short post to illustrate the rules of overriding or overloading a method in Java. A deep understanding of this powerful Java mechanisms is a basic skill for every Java developer (as well as OOP and OOD proficiency) Let's start with an example. package eu.albertomorales.OCAOCP.threads.example3; public class Rectangle { ...

Read More

Don’t rely on inherited code, keep your eyes open

There is a cost to making mistakes when coding, and the cost of not dealing with these mistakes will increase over time. Do you remember the technical debt metaphor? We don’t really know how much debt we have taken on – you may have taken on a lot of unintentional technical debt – and you may still be taking it on without knowing it. ...

Read More