Why 2 return statements are mandatory in equals method

return true is only executed if the if condition is true. For all other cases you need the return false

Browse More Popular Posts

Leave a Comment