InterviewSolution
| 1. |
Where Have You Written Equals() And Hashcode In Your Project? |
|
Answer» This is to see if the developer has even WRITTEN these methods or not. Of course, almost all of Java programmer are exposed to this, you can point out value OBJECTS, Hibernate entities from your domain, where you have overridden equals and hashCode. Always gives examples from your domain and from your PROJECT, rather than a TRIVIAL example from a test program, because if Interviewer is asking this question, it means he is INTERESTED in examples from your domain. This is to see if the developer has even written these methods or not. Of course, almost all of Java programmer are exposed to this, you can point out value objects, Hibernate entities from your domain, where you have overridden equals and hashCode. Always gives examples from your domain and from your project, rather than a trivial example from a test program, because if Interviewer is asking this question, it means he is interested in examples from your domain. |
|