publicclassKey{privatelongid1;privatelong1d2;//classKeymethods}AprogrammerisdevelopingaclassKey,thatwillbeusedasakeyinastandard java.util.HashMap.WhichtwomethodsshouldbeoverriddentoassurethatKeyworkscorrectlyasakey?()
A.publicinthashCode()
B.publicbooleanequals(Keyk)
C.publicintcompareTo(Objecto)
D.publicbooleanequals(Objecto)
E.publicbooleancompareTo(Keyk)