Answer:
As you can see in the above examples, encapsulation is implemented in Java using interfaces, classes, access modifiers, setters and getters. A class or an interface encapsulates essential features of an object. Access modifiers (private, public, protected) restrict access to data at different levels. I don't know If this helps