scjp认证试题及答案.docxVIP

  • 1
  • 0
  • 约9.16千字
  • 约 16页
  • 2026-05-24 发布于湖南
  • 举报

scjp认证试题及答案

一、单选题

1.WhichofthefollowingstatementsaboutinterfacesinJavaiscorrect?(1分)

A.Interfacescanhaveconstructors.

B.Interfacemethodscanbedeclaredasfinal.

C.Aclasscanimplementmultipleinterfaces.

D.Allinterfacemethodsmustbeabstract.

【答案】C

【解析】InJava,aclasscanimplementmultipleinterfaces,butinterfacesthemselvescannothaveconstructors,andtheirmethodsareimplicitlyabstractandpublic.

2.WhichofthefollowingisNOTapartoftheJavaCollectionsFramework?(1分)

A.List

B.Set

C.Map

D.Dictionary

【答案】D

【解析】DictionaryispartoftheolderJavacollections,nottheJavaCollectionsFrameworkwhichincludesList,Set,andMapamongother

文档评论(0)

1亿VIP精品文档

相关文档