Blackhawk Network Interview Question

5. Hashcode, why is it used and how is it generated and what is the type of hashcode. And how is java able to use the integer type for hashcode?

Interview Answer

Anonymous

Feb 19, 2021

I thought it should use long because in enterprise applications there can be an infinite number of objects and how is java doing that using integer itself.