2023年华腾Java笔试题.docxVIP

  • 3
  • 0
  • 约6.43千字
  • 约 9页
  • 2025-07-05 发布于江西
  • 举报

选择题(10*3分)

WhichofthefollowingstatementsaretrueaboutthedefaultimplementationofthepublicinthashCode()methodoftheObjectclass?

A.TheObjectclassdoesnotprovideanyimplementationforthehashCodemethod;everyclassmustoverrideit.?B.Asfarasitmaybepracticallypossible,thehashCodemethoddefinedbytheObjectclassdoesreturndistinctintegersfordistinctobjects.?C.Fortwoobjectreferencesreferringtothesameobject,thehashCodemethodreturnsthesameinteger.?D.ItreturnsafixednumberthatinternallyrepresentstheObjectclassfortheJVM.?E.Onlychoice

文档评论(0)

1亿VIP精品文档

相关文档