ensure the continuing function of a piece of software under unforeseen circumstances. Defensive programming techniques are used especially when a piece of software could be misused.”
null; public void setName(String name) { this.name = name; } public String getName() { return name; } } public Person newPerson(String name) { Person person = new Person(); if (name != null) { person.setName(name); } return person; }