网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

YouwanttouseteCoherenceJavaAPIstodirectlycachedPOJOs.Considerthissnippetofcode:NamedCachecache-CacheFactory.getCache("mycache");cache.put(newInteger(I)f"hello");cache.put(T,"hi");cache.put(newLong(II),"hey");Thiscodeinsertsthreeobjectsintothecache.Why?()

A.hashCode()andequals()methodforeachobjecttypeisdifferentsoadifferentkeyisused

B.eachobjectvaluestringisdifferentsoadifferentvalueisinsertedoneachput

C.equals()andcompare()methodisdifferentforeachput

D.POFneedtobeimplementedforthistoworkproperly


参考答案

更多 “ YouwanttouseteCoherenceJavaAPIstodirectlycachedPOJOs.Considerthissnippetofcode:NamedCachecache-CacheFactory.getCache(mycache);cache.put(newInteger(I)fhello);cache.put(T,hi);cache.put(newLong(II),hey);Thiscodeinsertsthreeobjectsintothecache.Why?()A.hashCode()andequals()methodforeachobjecttypeisdifferentsoadifferentkeyisusedB.eachobjectvaluestringisdifferentsoadifferentvalueisinsertedoneachputC.equals()andcompare()methodisdifferentforeachputD.POFneedtobeimplementedforthistoworkproperly ” 相关考题