Java Programming lifestyle strongly advise to hardly ever give entry to properties, and rather, experience getters and setters, and only Individuals which are actually wanted. @Kent points out that Properties usually are not needed to encapsulate fields, they may do a calculation on other fields, or provide other functions. Examples https://medium.com/@AiplJoyDistrict/experience-elegant-living-at-jms-floors-manesar-gurgaon-ec6c79d9b521