hi folks..i am new in learning collections. Unable to get how Map works with key value pair...i am unable to get this example
i am unable to get how values are retrieved using hashcode..somehow i was able to get answer..but it was guess..I am not sure correct way how get method finds value..
i understood that new Cat() gives null because equals and hashcode not overridden...
i am also unable to get..how this code when added at the end of main method produces following output
i just know use hashcode to find correct bucket and equals to find object.but practically how it works unable to get..