Java Bean Getters/Setters

Many Java developers think they know everything about Java Beans and the correct getter/setter styles, but there are some hidden traps ;-) Let’s do a little quiz! How should the correct and getter/setter for a property with the following field look like? private String name; This is an easy one: public String getName() { return … Continue reading Java Bean Getters/Setters