Shall we always use equals() method for equality comparison in any type of objects? No. You need to check the implementation in its respective class. StringBuffer and StringBuilder do not have an implementation for equals() method.i have not understood above statement. Please advise
From novice to tech pro — start learning today.