Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Equality versus Identity
Grade Level
Computer Science
HSCS.147 Equality versus Identity
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
Text-based stimulus: Four-row table titled Candidate Results. Columns: Row, Situation, ref1 == ref2, ref1.equals(ref2). Row A: same object alias, false, true. Row B: separate equal-value objects, true, true. Row C: separate equal-value objects, false, true. Row D: separate different-value objects, false, true. Use the text-based stimulus. Which row is consistent with Java reference comparison rules and a value-based equals method?
A
Row A
B
Row D
C
Row C
D
Row B
Submit Answer