What is "getters-setters"

Getters and Setters are methods used to retrieve and assign values (respectively) to variables without having to work directly with them. They are usually used when variables are not accessible via direct access (access can be blocked by using protected and private modifiers for example).

Link to oracle page: Link