2 ms·
This is what operator overloading is for. If equals() should always be used to compare objects then == should call it.
by extension 15y ago
This is what operator overloading is for. If equals() should always be used to compare objects then == should call it.
- wiradikusuma 15y agoJava doesn't support operator overloading.
- masklinn 15y agoDoesn't java support privileged operator overloading for `+`? (privileged in that it's only supported for types baked into the runtime itself, much like generics in Go)