COMPLETE SOURCE CODE FOR : GetObjectHashCode.java
*************************************************
public class GetObjectHashCode
{
public static void main(String[]args)
{
//Create a String object with value Hello
String stringObject=new String("Hello");
//Print hash code for the object
System.out.println("HASH CODE VALUE : "+stringObject.hashCode());
}
}
*************************************************
JUST COMPILE AND EXECUTE IT
*************************************************