SCJP程序员认证考试

多选题Which three changes should be made to adapt this class to be used safely by multiple threads?()Adeclare reset() using the synchronized keywordBdeclare getName() using the synchronized keywordCdeclare getCount() using the synchronized keywordDdeclare th

题目
多选题
Which three changes should be made to adapt this class to be used safely by multiple threads?()
A

declare reset() using the synchronized keyword

B

declare getName() using the synchronized keyword

C

declare getCount() using the synchronized keyword

D

declare the constructor using the synchronized keyword

E

declare increment() using the synchronized keyword

参考答案和解析
正确答案: B,D
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Magna Carta had altogether 63 clauses of which the most important matters could be seen in three of the following except _______.

A.no tax should be made without the approval of the Grand Council;

B.no serf should be arrested, imprisoned or deprived of his property except by the law of the land

C.London and other towns should retain their ancient rights and privileges

D.There should be the same weights and measures through - out the country.


正确答案:B

第2题:

Which method would you use to undo the changes made by a particular transaction without affecting the changes made by other transactions?()

A. point-in-time recovery

B. execute the ROLLBACK command with transaction number

C. flashback the database to before the transaction was committed

D. determine all the necessary undo SQL statements from FLASHBACK_TRANSACTION_QUERY and use them for recovery


参考答案:D

第3题:

A class design requires that a member variable should be accessible only by same package, which modifer word should be used?

A.protected

B.public

C.no modifer

D.private


参考答案:C

第4题:

In which cases listed below, the class would not being suspended or withdrawn()

  • A、Annual/Intermediate Surveys not complete within three months of due date
  • B、Repairs made are not acceptable to class
  • C、Accommodation common toilet flushing device isn’t working
  • D、Not complying with regulations

正确答案:C

第5题:

Which three protocols or applications should be placed in a class that is configured with WRED?()

  • A、HTTP
  • B、RTP
  • C、streaming video
  • D、BitTorrent
  • E、POP3

正确答案:A,D,E

第6题:

You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error.Which event should you use? ()

A. WebAuditEvent

B. WebEventManager

C. WebBaseEvent

D. WebRequestEvent


参考答案:C

第7题:

In a listening class,the teacher asks students to write a broad outline according to their notes which are made during listening.Which stage does this activity belong to?

A.Pre-listening
B.While-listening
C.Post-listening
D.Practice

答案:C
解析:
考查听力教学过程

C选项,听后阶段是产出阶段,包括根据所听内容进行口头或笔头转述等活动。符合题意,故此题的正确选项为C。

A选项,听前阶段主要是针对激活背景知识,为听力做准备的阶段,此阶段活动包括:熟悉话题、预测大意等,故排除。

B选项,听中阶段是做听力理解的阶段,主要包括边听边选择、填空、做笔记等活动,故排除。

D选项,练习环节,不是PWP模式的环节,故排除。

故此题的正确选项为C。

第8题:

I should have to divide the class into three groups and teach them _________ at three different levels.

A. by turn

B. for turn

C. in turn

D. of turn


参考答案:C

第9题:

We have made ____ clear that the goods should be packed in cartons.

  • A、it   
  • B、them   
  • C、this   
  • D、which

正确答案:A

第10题:

Which three things can be restricted by the Class of Service in a traditional PBX? ()

  • A、 dial plans
  • B、 dialed numbers
  • C、 voice mail prompts
  • D、 phone features

正确答案:A,B,D

更多相关问题