Is there way how to get instance number or id, I mean that what you can see in eclipse Debug>Variables window after class name in value column.
Thanks
See System.identityHashCode which returns the number that would be returned if Object.hashCode had not been overridden on an object. It is not a perfect proxy for identity since multiple objects might have the same identity hash code, but it is pretty useful for debugging.
By default, debugger shows you the result of toString() method with the hashCode of the object. So, you can see the value by executing hashCode() method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With