Given:Whichstatementistrue?()
A.TheequalsmethoddoesNOTproperlyoverridetheObject.equalsmethod.
B.Compilationfailsbecausetheprivateattributep.namecannotbeaccessedinline5.
C.Toworkcorrectlywithhash-baseddatastructures,thisclassmustalsoimplementthehashCode method.
D.WhenaddingPersonobjectstoajava.util.Setcollection,theequalsmethodinline4willprevent duplicates.