Question: what is the difference between equals() and == with example?
Answer: == is an operator. equals() is a method of Object class. == should be used during reference comparison. == checks if both references points to same location or not.