OOPS.................

Thursday, January 8, 2009

Does Every Object in java Have a hashCode() metod Which of the following statements are true?

Answers:

1:By default every object has a hashCode method
2:a correct hashCode method must return a positive int value
3:a hashCode method must return the same value each and every time it is invoked
4:The hashCode method of an object can return any primitive integral type

No comments: