Computer Science, asked by oendrila64, 1 year ago

if the significant difference between compare to ()and equals() in java​

Answers

Answered by sathya192
1
Another difference between them is that, If both "==" and equals() is used to compare objects than == returns true only if both references points to same object while equals() can return true or false based on its overridden implementation.One of the popular cases is comparing two String in Javain which case == 
Similar questions