The Object class has a number of methods such as equals, hashCode, notify, wait etc.
What methods do you think are missing from the Object class and why? Are there any additional methods you wish it had?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think it should have any extra methods… in fact, I think various methods that are there shouldn’t be there in the first place.
One problem in Java is that a lot of types (such as
HashMap) always use the hash code and equality methods on the keys directly – it would be much better if Java had an interface like .NET’sIEqualityComparer<T>that anything wanting to perform hashing/equality comparisons could delegate to.