java.lang.Long.hashCode()


java.lang.Long.hashCode()

package com.codingdict;



import java.lang.*;



public class LongDemo {



   public static void main(String[] args) {



      Long l = new Long(65987);



      /* returns a hash code value for this object, equal to the primitive

         int value represented by this Long object */

      int retval = l.hashCode();

      System.out.println("Value = " + retval);

   }

}