Java, Encapsulation, Programming, Software Development, Technology.
Benefits of Encapsulation: The variables(fields) of a class can be made read-only by just removing the setter for those fields or write-only by just removing the getter for those fields. A class can have total control over what is stored in its variables(fields). Through encapsulation code