Encapsulation: is one of the most exclusive features of Object Oriented programming approach. Encapsulation came from the word capsule, where we wrap up the data and methods together under a single unit name class. Class is the base for encapsulation. With Java Encapsulation, we can hide (restrict access) to critical data members in our code, which improves security. It is the process of hiding information and protecting data and behavior of the object.