What’s the difference between == and .equals()?
1) “==” is an operator, whereas .equals() is a function.
2) “==” checks if the references share the same location, whereas .equals() checks if both object values are the same on evaluation.