fakeemial7743 fakeemial7743
  • 14-07-2019
  • Computers and Technology
contestada

What is one property of a good hash code?

Respuesta :

Cetacea
Cetacea Cetacea
  • 22-07-2019

Answer:- Major property of a good hash code is that objects which are equal should return the same hash code .

Explanation: Hash codes is a numeric value which  is used for identify a object while a equality testing .Hash code can occupy the value of any length and then returns a fixed length value. The value of hash codes are variable.

If two objects are equal then by the method of equal(object) if the hashcode() function is called on both the objects , they produce the same value.

Answer Link

Otras preguntas

During which stage of prophase i does crossing over take place?
Which of the following would have the greatest force of gravitational attraction?
Yulian works at the zoo feeding the animals. He puts water in the elephant habitat at the beginning of the day. The table shows how much water, in gallons, rem
Why is a threatening, violent e-mail that contains curse words considered cyberbullying? A. It is not cyberbullying; it’s netiquette. B. Cyberbullying includes
describe an application of biological classification
Writs fraction using 2 2/3
Why is a standard unit of measurement necessary in science and industry?
Which expressions are equivalent to 2(2x + 4y + x − 2y)? 2(x + 6y) and 2x + 12y 2(x + 2y) and 2x + 4y 2(3x + 2y) and 6x + 4y 2(3x + 6y) and 6x + 12y
What is the answer to 35 times q = 5?
what was Winston Churchill reaction to the 1938 munich agreement