When I trace through a program inside the debugger, I noticed the variable values are shown as something like {java.lang.String@1427}"some string". What does 1427 mean here? Thanks.
That's the value that you'd get from System.identityHashCode for that instance. The portion that appears between the braces is what Object's implementation of toString() produces for that instance.
That's the value that you'd get from System.identityHashCode for that instance. The portion that appears between the braces is what Object's implementation of toString() produces for that instance.
Randall Schulz
Great explanation. Thanks!