Core Java

11. What is Encapsulation?It is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object. We can make the fields as private or protected and let them to be […]

Core Java Read More »