while overriding equals() method, if you don't override Hashcode() method then what happens ?
Back to Questionscompiletime Error
successfully Executed
Runtime Error
compile with warnings
Throws Exception
None
Eventhough if you didn't override hashcde() method, program will execute successfully.But the problem is performance of application goes down.
Answers Posted
PostedBy By: sunkara ganesh, at 09:17 AM on 31-March-2019
Answer Posted: B
Explanation: overriding is optional in overriding
Result: Correct