Skip to content

Commit

Permalink
Update equality-and-identity-part1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
soc committed Jan 5, 2024
1 parent d747e61 commit 8564bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _languages/equality-and-identity-part1.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on references, often called _reference equality_. Here are a few examples:
#### Java

- `==` implements reference equality on reference types.
- `Object.equals` and `Objects.equals` implement reference equality be default, but can be overridden to implement value equality on reference types.
- `Object.equals` and `Objects.equals` implement reference equality by default, but can be overridden to implement value equality on reference types.
- `Arrays.deepEquals` implements value equality on arrays (`equals` does reference equality on arrays).
- `==` implements value equality on primitive types.
- Primitive types can be implicitly converted to special wrapper classes, which implement `equals` slightly differently.
Expand Down

0 comments on commit 8564bbc

Please sign in to comment.