How can you find the hash code of an object ?

The hashCode( ) method of ‘Object’ class in java.lang.package is useful to find the hash code of

an object.

Example:

String s=new String(“welcome”);

System .out.println(s);

Here hash code wil; be printed.