2 Comments


  1. Not accurate: in order to get it to print “3”, we need to implement both “equals()” as well as “hashCode()”. Leaving one of them unimplemented will result in the code snippet printing “5”.

    Reply

Leave a Reply