Hi All, Can anybody tell me where equals() is overidden which does deep copy. Like it is overidden in String class but not in StringBuffer class.Like this which classes overiddes equals(). Thanks.
String class and all the Wrapper classes override the equals method by default to check the contents of two objects. For other classes, u have to override equals() method explicitly. ------------- Nayan.