So what is the logic to say the the default equals(Object obj)
public boolean equals(Object obj){
this == obj;
}
or:
int a = 1;
int b = 2;
a == b;
Could be another type with another value, I just don't find any documentation in what the cost of each one is.
Adding a reason for this:
I was reading this question and I was thinking, if there is an optimization for comparing for example a value inside the object (like an int) and compare them instead of the reference