#BlueJ class context comment0.target=class\ Person comment1.params= comment1.target=int\ hashCode() comment1.text=The\ hashCode\ returns\ an\ integer\ which\ is\ used\nin\ connection\ with\ hashtables.\ The\ documentation\nof\ the\ hashCode\ method\ states\ that\:\n"\ The\ general\ contract\ of\ hashCode\ is\:\n-\ Whenever\ it\ is\ invoked\ on\ the\ same\ object\ more\nthan\ once\ during\ an\ execution\ of\ a\ Java\ application,\nthe\ hashCode\ method\ must\ consistently\ return\ the\ same\ninteger,\ provided\ no\ information\ used\ in\ equals\ncomparisons\ on\ the\ object\ is\ modified.\ This\ integer\ need\nnot\ remain\ consistent\ from\ one\ execution\ of\ an\ application\nto\ another\ execution\ of\ the\ same\ application.\n-\ If\ two\ objects\ are\ equal\ according\ to\ the\ equals(Object)\nmethod,\ then\ calling\ the\ hashCode\ method\ on\ each\ of\ the\ntwo\ objects\ must\ produce\ the\ same\ integer\ result.\n-\ It\ is\ not\ required\ that\ if\ two\ objects\ are\ unequal\naccording\ to\ the\ equals(java.lang.Object)\ method,\nthen\ calling\ the\ hashCode\ method\ on\ each\ of\ the\ two\nobjects\ must\ produce\ distinct\ integer\ results.\nHowever,\ the\ programmer\ should\ be\ aware\ that\ producing\ndistinct\ integer\ results\ for\ unequal\ objects\ may\ improve\nthe\ performance\ of\ hashtables.\ "\n\n comment2.params= comment2.target=int\ age() comment3.params=name\ born comment3.target=Person(String,int) comment4.target=name comment5.params=other comment5.target=boolean\ equals(Object) comment6.target=born comment7.params= comment7.target=String\ toString() comment8.target=testPersons numComments=9