Online Java Compiler By
JavaTpoint.com
public class SystemIdentityHashCodeExample1{ public static void main(String[] args) { int a=10; System.out.println("identity hash code of object a = "+System.identityHashCode(a)); int b=10; System.out.println("identity hash code of object b = "+System.identityHashCode(b)); int c=01; System.out.println("identity hash code of object c = "+System.identityHashCode(c)); } }
Output