I have a hashmap in which i am putting a reference to an object.
     DateTest test100 = new DateTest("ABC",100); 
     dateTestMap.put(96, test100);
I am passing this reference variable to a method where i am assigning it a different object and after returning i am pointing the existing reference to the new object as follows:
    test100 = datePassingTest(test100);
    private DateTest datePassingTest(DateTest test100)
    {
        DateTest newTest = new DateTest("XYZ", 69);
        test100 = newTest;
        return test100;
    }
Well, test100 does get modified to point to the new object but the value stored in map isn't getting updated. Is there something i am missing ?
Thanks, Adithya
 
     
     
    

 
     
    