Object-oriented programming in Java.
Among four fundamentals of OOP concepts, encapsulation is the important one. Other three included are abstraction, polymorphism and inheritance.
Encapsulation is basically a field making technique in class private which also provides an access to the fields through public methods. When fields have been declared private then no one presnt outside of the class has access, thereby fields are hided in class. This is the reason encapsulation is given another name “data hiding”.