Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Java
/
Object-oriented programming
Which statement correctly distinguishes reference identity from value equality?
from Object-oriented programming
Java 25 LTS
intermediate
1 min
Which statement correctly distinguishes reference identity from value equality?
`==` compares object identity; `equals()` uses the value relation defined by the receiver’s type.
`==` always delegates to `equals()` for reference types.
Two objects with the same field values are always identical.
Overriding `equals()` makes `hashCode()` update automatically.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated member account
Review AI code
A new version is available
Reload