The java.lang.Object.hashCode() method returns a hash code value for
the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable. Develop a program to illustrate the hashCode() method of the Object class in java.
Program code:
import java.io.*; class test { void disp() { System.out.println("the hashcode is:"); } } public class Code { public static void main(String a[])throws Exception { test obj=new test(); System.out.println("the object hashcode is"+obj.hashCode()); } }