What is the difference between '==' and ‘.equals()' in Java?
'==' checks for reference equality, meaning it checks if two references point to the same object. The '.equals()' method is used to check for content equality.