If the equals method indicates that two objects are not equal, then what should the hashCode function return for these objects?
What will be an ideal response?
If the objects are not equal, the behavior of the hashCode function is undefined. It would be best if it
returned different values for different objects.
Computer Science & Information Technology
You might also like to view...
Match the following wildcards to their use:
I. ? or _ II. * or % III. # IV. [charlist] V. [!charlist] A. Any single character B. Any single character in a list C. Any single digit D. Zero or more characters E. Any single character not in a list
Computer Science & Information Technology
Microsoft ________ is an e-mail, contact, and information management program
A) Publisher B) Outlook C) Skype for Business D) OneNote
Computer Science & Information Technology