Use of ‘this’ in Java

this keyword is a pet name for the current instance within a class. In other word, this is a reference variable that refers to the current object. this does not really affect end code. It is a compile time operator and the code generated with or without it, will remain the same. Where you have to use it, that totally … More Use of ‘this’ in Java

What is Value Objects

A Value Object is something that hold values but not the identity. Value Object is an immutable type that is distinguishable only by the state of its attributes. i.e. Two Value Objects will be considered same if they share all of their attributes. Value Objects has all the properties of an immutable object like String … More What is Value Objects

Domain Driven Design

Domain driven design is a software development approach where you start segregating responsibilities between domain and every domain serve set of services. What is a Domain: – Domains in Domain Driven Design is a group of services which handle specific types of requests. Now lets talk in simple example. Say, You are working in one … More Domain Driven Design

Prototype Design Pattern

Builder design pattern belongs to creational design pattern family and this Prototype design pattern is used when we dont want to use either the new operator or create another factory class. i.e. we clone existing objects to create new ones. But How:  To implement the pattern, declare an abstract base class or interface that specifies a virtual clone() method. Any … More Prototype Design Pattern

Builder Design Pattern

Builder design pattern belongs to creational design pattern family and this pattern is used to hide the complexity of object creation or the intent of the Builder design pattern is to separate the construction of a complex object from its representation. Example: When you buy a car, you have to go to showroom of the car. But … More Builder Design Pattern