Java认证考试

It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()  A、Mark the method with the keyword public.B、Mark th

题目

It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()  

  • A、Mark the method with the keyword public.
  • B、Mark the method with the keyword protected.
  • C、Mark the method with the keyword private.
  • D、Mark the method with the keyword package.
  • E、Do not mark the method with any accessibility modifiers.
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

81 Cost Plus Percentage of Cost contracts are more desirable for the:

A. owner

B. buyer

C. seller

D. contractor

E. C or D


正确答案:E

第2题:

They thought it desirable that an armed guard () in readiness.

A.stands

B.stand

C.stood

D.would stand


参考答案:B

第3题:

Quality management deals with all of the following except:

A . conformance to requirements/specifications

B . satisfying the needs of the customer

C . making products more desirable and luxurious

D . A and C.

E . B and C


正确答案:C

第4题:

WhichthreecombinationsarevalidLACPconfigurationsthatwillsetupachannel?()

A.On/On

B.On/Auto

C.Passive/Active

D.Desirable/Auto

E.Active/Active

F.Desirable/Desirable


参考答案:A, C, E

第5题:

Which two of these are recommended practices with trunks? ()

A. use ISL encapsulation

B. use 802.1q encapsulation

C. set ISL to desirable and auto with encapsulation negotiate to support ILS protocol negotiation

D. use VTP server mode to support dynamic propagation of VLAN information across the network

E. set DTP to desirable and desirable with encapsulation negotiate to support DTP protocol negotiation.


参考答案:B, E

第6题:

36 Quality management deals with all of the following except:

A. conformance to requirements/specifications

B. satisfying the needs of the customer

C. making products more desirable and luxurious

D. A and C.

E. B and C


正确答案:C

第7题:

The author suggests in the last paragraph that the effect of peer pressure is

[A] harmful

[B] desirable

[C] profound

[D] questionable


正确答案:
答案暂无

第8题:

Cost Plus Percentage of Cost contracts are more desirable for the:

A owner

B buyer

C seller

D contractor

E C or D


正确答案:E

第9题:

WhichtwocombinationsarevalidPAgPconfigurationsthatwillsetupaPAgPchannel?()

A.On-Passive

B.On-Auto

C.Passive-Active

D.Desirable-Auto

E.Active-Active

F.Desirable-Desirable


参考答案:D, F

第10题:

A apparent B desirable C negative

D plausible


正确答案:A

更多相关问题