• GoF Design Patterns Overview

    23 GoF Design patterns are categorized into 3 categories as shown below. Each category has a specific goal Creational: Goal is to provide a mechanism to create objects in way that promotes flexibility and reusability. Structural: Deals with object...
  • Essence of equals() and hashCode() in Java

    This post can be better understood after reading through my previous post on Equality Check between Strings in Java. By the end of this post, we should get an idea of when to override equals() and hashCode() and the...
  • Equality Check between Strings in Java

    In this post, I will try to demonstrate the rationale behind overriding java.lang.Object’s equals() method in java.lang.String class and why it’s recommended to call String’s equals() instead of == operator to check String equality. By the end of this...
  • Overview of Hashtable implementation in Java

    HashTable also known as Dictionary in some programming languages is a data structure that stores key-value pairs and allows efficient search and retrieval of values based on their corresponding keys, and provides efficient constant-time average case performance for operations...
  • Prototype Pattern

    It’s a creational design pattern, that emphasizes on effective ways to clone objects. At times in our codebase, we might need to create a copy of object with same state but use it for a different purpose. One way...