I have a doubt in scjp pg 525(K&B) The above code is the example for car/owner and equals(),hashcode().
question 1: for search I will be in trouble unless i still have a reference to the exact object used as the key when added it to the collection(may i know which object is that from the above code)
question 2: one instance added it to collection, essentially re-create an identical instance to search based on the object as key. does it mean like this? car carobj1 = new car("V001Lexus"); Hm.put(carobj1, perobj1); car carobj8 = new car("V001Lexus"); Hm.get(carobj8);
question 3: more than one object representing a single unique car can exist( does this sentence mean this?)