I need to compare different data objects.
Can any one tell me how can i do this. I don’t know what are the data types i will get priorly. If i need to use any util from apache commons then please give reference to it.
At present I am using .equals() for comparing equality of objects .It is working fine when I am comparing quality for two strings. If i am comparing java.sql.date data type then it is showing unequal even though both contains same values.
Can any one suggest me on this regard.
Thanks,
Narendra
it totally depends on the
equals()method implementation of the object upon which you are calling theequals(),