From link :
http://www.tutorialspoint.com/java/java_string_hashcode.htm
Relationship between hashCode and equals method in Java
Good hashCode() Implementation
But i cant understand about the hashcode .
Here's an example:
public class StringDemo {
public static void main(String args[]){
String strob1="first string";
System.out.println(strob1.hashCode());
}
}
This simple program give me output:-5468287
Can anyone tell me :
How it give me output:-5468287
?