System.identityHashCode(Object x) vs hashCode()

Report a typo

What will the application print if the hashCode() is overriden?

    Person james = new Person("James Gosling");

    System.out.println(System.identityHashCode(james) == james.hashCode());
Enter a short text
___

Create a free account to access the full topic