Here is a short presentation of equality methods in Ruby and Java:
Ruby
Java
Object#equal?
==
Object#eql?
Object.equals
Object#==
Object.equals
Object#===
N/A
So, in both Ruby and Java we have an instance reference equality or identity (Object#equal?, respectively the == operator).
Another similarity is for objects used as keys in maps (hashes). If you want to customize their behavior, in both Ruby and Java will have to [...]
