Pre-knowledge
Definition
This is a method to check if variables are equal on the basis of:
- their object’s memory location
- (and sometimes) on the basis of other values’ memory location

example
There are multiple examples of built-inĀ equals methods
Everything You Have To Know About Java
This is a method to check if variables are equal on the basis of:

There are multiple examples of built-inĀ equals methods
© 2026 Learn Java Coding