in the java.lang.Enum class equals method is like
public final boolean equals(Object other) {
return this==other;
}
actually overriding it with something else does not make sense hence its final. As for Enums equals() and == are the same things.
public final boolean equals(Object other) {
return this==other;
}
actually overriding it with something else does not make sense hence its final. As for Enums equals() and == are the same things.
No comments:
Post a Comment