Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return statement
Why are you comparing an E to an F by the way?
abalfazl hossein wrote:I can define a method by the name abalfazl that can compare objects like this:
abalfazl hossein wrote:Why equals is used for this purpose?
abalfazl hossein wrote:equals works without override.How?Why for comparison two object needs to override