Explain why using a mutable object as a HashMap key can create unexpected lookup behaviour.
The candidate should discuss hashCode, equals, bucket placement, object mutation, retrieval failure, immutability, and safe key-design practices.
Employee employee = new Employee(101, "Asha");
records.put(employee, "Active");
employee.setId(202);
System.out.println(records.get(employee));