单选题You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?()ApublicBprivateCprotectedDtransientEdefault access

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

 public

B

 private

C

 protected

D

 transient

E

 default access


相似考题
更多“单选题You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?()A  publicB  privateC  protectedD  transientE  default access”相关问题
  • 第1题:

    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

  • 第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…
    • 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

  • 第3题:

    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

  • 第4题:

    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()  

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

    正确答案:B

  • 第5题:

    A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()    

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

    正确答案:D

  • 第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


    正确答案: A
    解析: 暂无解析

  • 第7题:

    单选题
    You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()
    A

     Public

    B

     Private

    C

     Protected

    D

     Transient

    E

     No access modifier is required


    正确答案: E
    解析: 暂无解析

  • 第8题:

    单选题
    You are a Windows Server 2008 systems administrator responsible for configuring FTP Publishing Servicefor use by members of your organization’s engineering department. The name of the server is FTPServer01. Several users have reported that they are able to access most files through the FTP site,but they cannot access the contents of the Drawings folder. You have verified that these users. Windowsaccounts have the correct file system permissions for this folder. You want to minimize the permissionsgranted to all the users. Which of the following changes should you make to enable users to access thisfolder?()
    A

    Change the permissions for the IUSR_FTPServer01 account on the Drawings folder.

    B

    Create new TCP/IP Address Restrictions entries for the users who cannot access the Drawings folder.

    C

    Disable the Allow Only Anonymous Connections option.

    D

    Add the users to the local Administrators group on FTPServer02.


    正确答案: 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


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    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


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    实例变量默认的访问修饰符是()
    A

    @public

    B

    @private

    C

    @protected

    D

    @package


    正确答案: D
    解析: 暂无解析

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()  

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

    正确答案:B

  • 第17题:

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

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

    正确答案:C

  • 第18题:

    单选题
    A class design requires that a member variable cannot be accessible directly outside the class. Which modifier should be used to obtain the access control?()
    A

     public

    B

     no modifier

    C

     protected

    D

     private


    正确答案: A
    解析: 这个在前面也有叙述,java有四种访问类型,分别为:public,protected,default,private,其中public变量可以被所有的外部类访问,而pretected的可以被同一个包及该类的子类访问,default即没有任何修饰符的变量可以被同一个包中的类访问,而private变量只能在被该类内部被访问。题目中的外部类应该理解为除该类自身的所有其它类,因此只有使用private可以达到要求 

  • 第19题:

    单选题
    You are a technician at TestKing. Your assistant applied an IP access control list to Router TK1. You want to check the placement and direction of the access control list.Which command should you use?()
    A

    show access-list

    B

    show ip access-list

    C

    show ip interface

    D

    show interface

    E

    show interface list


    正确答案: B
    解析: 暂无解析

  • 第20题:

    单选题
    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


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    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.


    正确答案: E
    解析: 暂无解析

  • 第23题:

    单选题
    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
    解析: 暂无解析