Java Associate — Medium
Key points
- `==` checks references, while `.equals()` checks content
- Using `==` with Strings may not give the expected result
- Always use `.equals()` when comparing String objects
Ready to go further?
Related questions
Java Associate — Medium
Key points
Ready to go further?
Related questions