Samuel Edments
Web Developer, Software Engineer, and Project Manager in NYC, NY
Java Encapsulation is data variables and methods together as a single unit. In encapsulation, the variables of a class will be hidden from other classes, and can be accessed only through the methods of their current class. Therefore, it is also known as data hiding.