Returns the hash code value for this Map as per the definition in the Map interface.
Program
package com.candidjava;
/*
* @author : Mohan
* @description : Returns the hash code value for this Map as per the definition in the Map interface.
*/
public class PropertiesHashCode {
public static void main(String args[]) {
String Str = new String("Welcome to candidjava.com");
System.out.println("Hashcode for Str :" + Str.hashCode());
}
}
Output
Hashcode for Str :959596107
Explanation
public int hashCode()
Returns the hash code value for this Map as per the definition in the Map interface.