I have a class that looks like the following:
public class MyClass { private String dPart1; public String getDPart1() { return dPart1; }
Best Practice is not to create getters/setters by our self but use the Eclipse Shortcut(Alt+Shift+S) to create the same for the variables defined in a bean/pojo.
Naming convention does matters.