• Builder Design Pattern

    It’s a Creational design pattern that provides a way to construct complex objects by separating object construction from its representation, so that same construction process creates different representations. For example, you can have a car with different types of...
  • NPE while AutoBoxing

    Auto-boxing and Unboxing is a feature of Java which allows us to assign primitives to wrappers and vice versa. But, at times while boxing there could be a chance of NPE if null checks are not done. Auto-boxing: Double...
  • Singleton Design Pattern

    It’s a Creational Design Pattern which talks about maintaining a single instance of a class throughout the application lifetime i.e., from start till the end of runtime process. Purpose: When we want to have a globally accessible object that...