SCJP程序员认证考试

单选题You want subclasses in any package to have access to members of a superclass. Which is the mostrestrictive access modifier that will accomplish this objective?()APublicBPrivateCProtectedDTransientENo access modifier is qualified

题目
单选题
You want subclasses in any package to have access to members of a superclass. Which is the mostrestrictive access modifier that will accomplish this objective?()
A

 Public

B

 Private

C

 Protected

D

 Transient

E

 No access modifier is qualified

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access modifier that will accomplish this objective?()  

  • A、 Public
  • B、 Private
  • C、 Protected
  • D、 Transient
  • E、 No access modifier is qualified.

正确答案:C

第2题:

Which statement about access lists that are applied to an interface is true?()

  • A、you can apply multiple access lists with the same protocol or in different direction.
  • B、you can config one access list,per direction,per layer 3 protocol
  • C、you can place as many access lists as you want on any interface
  • D、you can apply only one access list on any interface

正确答案:B

第3题:

Youwantaclasstohaveaccesstomembersofanotherclassinthesamepackage.Whichisthemostrestrictiveaccessmodifierthatwillaccomplishthatwillaccomplishthisobjective?()

A.Public

B.Private

C.Protected

D.Transient

E.Noaccessmodifierisrequired.


参考答案:E

第4题:

You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?()  

  • A、 public
  • B、 private
  • C、 protected
  • D、 transient
  • E、 default access

正确答案:E

第5题:

A member variable defined in a class can be accessed only by the classes in the same package. Which modifier should be used to obtain the access control?()         

  • A、 private
  • B、 no modifier
  • C、 public
  • D、 protected

正确答案:B

第6题:

You want subclasses in any package to have access to members of a superclass. Which is the mostrestrictive access modifier that will accomplish this objective?() 

  • A、 Public
  • B、 Private
  • C、 Protected
  • D、 Transient
  • E、 No access modifier is qualified

正确答案:C

第7题:

Which statement about access lists that are applied to an interface is true?()

  • A、you can apply multiple access lists with the same protocol or in different…
  • B、you can config one access list,per direction,per layer 3 protocol
  • C、you can placeasmanyaccess lists as you want on any interface
  • D、you can apply ony one access list on any interface

正确答案:D

第8题:

Which statement about access lists that are applied to an interface is true?()

A.you can apply multiple access lists with the same protocol or in different…

B.you can config one access list,per direction,per layer 3 protocol

C.you can placeasmanyaccess lists as you want on any interface

D.you can apply ony one access list on any interface


参考答案:D

第9题:

Which statement about access lists that are applied to an interface is true?()

  • A、you can apply multiple access lists with the same protocol or in different…
  • B、you can config one access list,per direction,per layer 3 protocol
  • C、you can place as many access lists as you want on any interface
  • D、you can apply ony one access list on any interface

正确答案:D

第10题:

You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()  

  • A、 Public
  • B、 Private
  • C、 Protected
  • D、 Transient
  • E、 No access modifier is required.

正确答案:E

更多相关问题