What is encapsulation???
Encapsulation is the technique of hiding some members of a class from other classes but provides a public interface to access that members.
You limit direct access to variables thereby protecting their integrity, and outsource reading and modifying them to public methods. It is a big concept in Java and OOP that is used to protect access to elements of your program so they are not misused.
Binding data and method together
Warping upof a data &method is called encapsulation.its heart of java .it binds data&method into single unit.