while overriding equals() method, if you don't override Hashcode() method then what happens ?

Back to Questions
A)

compiletime Error

B)

successfully Executed

C)

Runtime Error

D)

compile with warnings

E)

Throws Exception

F)

None

 

Author Explanation :

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

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now



Input symbols