Infosys Java and Spring Boot interview questions and answers
Core Java Interview Questions What is the difference between == and .equals()? 1. == Operator: Both a and b are primitive types and have the same value, so == returns true. Even though both strings have the same content, they are stored in different memory locations, so == returns false. 2. .equals() Method: Here, .equals() checks the content of the […]