Here you can find the source of identityToString(Object obj)
Object.toString()
.
public static String identityToString(Object obj)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /**/*from ww w .ja v a 2s.c om*/ * Returns a string value of an object similar to that returned by <code> * Object.toString()</code>. The primary difference is that the numeric * part of the string is its identity hashcode, and it's in decimal (so as * not to be confused with the default <code>toString()</code>). * <p> * This method is null-safe: if passed <code>null</code>, it returns * "null". */ public static String identityToString(Object obj) { return (obj == null) ? "null" : obj.getClass().getName() + "@" + System.identityHashCode(obj); } }