This is not just a matter of taste. If setXXX()there is no additional logic in the methods , the convention should assign attributes directly in the constructor:
this.foreName = foreName;
this.surName = surName;
... Etc. But if setXXX()there is additional logic in the methods , you should use them as needed. Let's say a call to the registration logic or similar:
public void setForeName(String pForeName) {
log.info("setting new foreName value: " + pForeName);
this.foreName = pForeName;
}
, setForeName() ? , setXXX() ( , JIT). , , , , .