Is it possible to have same hashcode for different strings using java\'s hashcode function?or if it is possible then what is the % of its possibility?
YES. A lot.
Look at following pair
can return same hash code even though the characters in it are not same.
Basically it is the sum of characters in a string multiplied by an integer.