PinnedMutation Testing in Java with PITWhen evaluating the quality of your tests, most developers turn to code coverage tools. These tools provide a percentage indicating how much of your code is executed by your test suite. At first glance, this seems like the ultimate metric: higher cov...Jan 12, 2025·5 min read·140
Understanding equals() and hashCode() Methods in Java and Their Role in CollectionsIn Java, the equals() and hashCode() methods are key for comparing objects and storing them in collections. Though they may look simple, implementing them correctly is crucial for the accuracy, performance, and reliability of Java applications, espec...Sep 29, 2024·8 min read·131
Deep dive into the optional java APIThe Optional<T> class in Java is a container object that may or may not contain a value. Introduced in Java 8 as part of the functional programming enhancements, its goal is to provide a more expressive way to represent optional or absent values with...Sep 23, 2024·5 min read·35
Records in java : the illusion of immutabilityJava records, as I mentioned in my last article, offer a new way to define classes that hold immutable data. Records make it easier to create data carriers with fixed states at creation. However, this immutability can be misleading when records have ...Sep 12, 2024·5 min read·64
Records: An Elegant Way to Transfer Data in JavaWith the introduction of Java 14, one of the most prominent features was "Records." Records offer a new approach to modeling classes as bearers of immutable data. Traditionally, building a basic data transfer object (DTO) in Java required a lot of bo...Sep 5, 2024·4 min read·71