Possible Duplicate:
Considering object encapsulation, should getters return an immutable property?
Does encapsulation mandate immutability of the class?
Class Employee{
private Date hireDate;
public Date getHireDate(){
return hireDate;
}
}
In Some client Method:
Employee emp = new Employee();
Date temp = emp.getHireDate();
temp.setTime(...);//The Hiredate of the employee would be corrupted...