多选题Which two are true?()AAn encapsulated, public class promotes re-use.BClasses that share the same interface are always tightly encapsulated.CAn encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.DAn encapsula

题目
多选题
Which two are true?()
A

An encapsulated, public class promotes re-use.

B

Classes that share the same interface are always tightly encapsulated.

C

An encapsulated class allows subclasses to overload methods, but does NOT allow overriding methods.

D

An encapsulated class allows a programmer to change an implementation without affecting outside code.


相似考题
更多“Which two are true?()”相关问题
  • 第1题:

    Which two statements are true with regard to policy ordering? ()(Choose two.)

    A. The last policy is the default policy, which allows all traffic.

    B. The order of policies is not important.

    C. New policies are placed at the end of the policy list.

    D. The insert command can be used to change the order.


    参考答案:C, D

  • 第2题:

    Which two statements are true about precedence values in policy?() (Choose two.)

    A. 1 is the default precedence.

    B. A lower number is preferred.

    C. A higher number is preferred.

    D. 100 is the default precedence.


    参考答案:B, D

  • 第3题:

    Which statement about two lines spliced together is TRUE ________.

    A.Splicing is used to increase the circumference of each line

    B.Splicing two lines together is stronger than knotting two lines together

    C.Splicing is used to increase the overall strength of the line

    D.Splicing is used to prevent rotting of the lines bitter end


    正确答案:B

  • 第4题:

    Which two statements about the Cisco Nexus 1000V VSM are true?()

    • A、It performs switching decisions and forwarding for the VEM
    • B、It can be run on a virtual machine
    • C、It can be used for remote VEM switching Iine cards

    正确答案:B,C

  • 第5题:

    Which of the following statements are true?() 

    • A、 The equals() method determines if reference values refer to the same object.
    • B、 The == operator determines if the contents and type of two separate objects match.
    • C、 The equals() method returns true only when the contents of two objects match.
    • D、 The class File overrides equals() to return true if the contents and type of two separate objects        match.

    正确答案:A,D

  • 第6题:

    Which two statements are true about pool-based source NAT? ()(Choose two.)

    • A、PAT is not supported.
    • B、PAT is enabled by default.
    • C、It supports the address-persistent configuration option.
    • D、It supports the junos-global configuration option.

    正确答案:B,C

  • 第7题:

    var one;var two=null;console.log(one==two,one===two);上面代码的输出结果是()。

    • A、false true
    • B、true false
    • C、false false
    • D、true true

    正确答案:B

  • 第8题:

    多选题
    Which two statements are true about L2TP tunnels?() (Choose two.)
    A

    Traffic is clear text

    B

    Traffic is encrypted 

    C

    They are initiated by the LNS

    D

    They are initiated by the LAC


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

  • 第9题:

    单选题
    Which statement is true about the digital to analog conversion process?()
    A

    the two steps of digital to analog conversion are decompression and reconstruction of the analog signal

    B

    the two steps of digital to analog conversion are decoding and filtering

    C

    the two steps of digital to analog conversion are decompression and filtering of the analog signal

    D

    the two steps of digital to analog conversion are quantization and decoding


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

  • 第10题:

    多选题
    Which two statements are true about AH?() (Choose two.)
    A

    AH provides data integrity.

    B

    AH is identified by IP protocol 50.

    C

    AH is identified by IP protocol 51.

    D

    AH cannot work in conjunction with ESP


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

  • 第11题:

    多选题
    Given: 6. Which two successfully translate and result in a value of true?()
    A

    ${true or false}

    B

    ${requestScope[foo][0] > 500}

    C

    ${requestScope[’foo’][1] = 420}

    D

    ${(requestScope[’foo’][0] lt 50) && (3 gt 2)}


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

  • 第12题:

    单选题
    Which of the following is NOT TRUE?
    A

    Maggie had two children.

    B

    Maggie was once a slave.

    C

    Maggie was good at math.

    D

    Maggie taught for a while.


    正确答案: B
    解析:
    根据文章第一段“Her mother was once a slave in a rich woman’s house”可以知道,她的母亲曾经是一个富太太家的奴隶,并不是说Maggie曾经是奴隶,所以B项说法错误。根据第二段第三句“They had two sons”可知,Maggie有两个孩子,这与A项相符。第一段提到“She was a very good student, especially in math”,Maggie数学很好,这与C项相符。根据第二段第一句“she got a job as a teacher”可以知道,Maggie当过一段时间的老师,这与D项相符。

  • 第13题:

    Which two statements regarding symmetric key encryption are true?() (Choose two.)

    A. The same key is used for encryption and decryption.

    B. It is commonly used to create digital certificate signatures.

    C. It uses two keys: one for encryption and a different key for decryption.

    D. An attacker can decrypt data if the attacker captures the key used for encryption.


    参考答案:A, D

  • 第14题:

    Which two statements are true regarding L2TP? ()(Choose two.)

    A. Tunnels are initiated by the LAC

    B. Tunnels are initiated by the LNS

    C. By default, subscriber authentication occurs on the LNS

    D. By default, subscriber authentication occurs on the LAC


    参考答案:A, C

  • 第15题:

    Which two statements are true about L2TP tunnels?() (Choose two.)

    • A、Traffic is clear text
    • B、Traffic is encrypted 
    • C、They are initiated by the LNS
    • D、They are initiated by the LAC

    正确答案:A,D

  • 第16题:

    Which statement is true about the digital to analog conversion process?()

    • A、the two steps of digital to analog conversion are decompression and reconstruction of the analog signal
    • B、the two steps of digital to analog conversion are decoding and filtering
    • C、the two steps of digital to analog conversion are decompression and filtering of the analog signal
    • D、the two steps of digital to analog conversion are quantization and decoding

    正确答案:B

  • 第17题:

    Which two statements are true regarding L2TP? ()(Choose two.)

    • A、Tunnels are initiated by the LAC
    • B、Tunnels are initiated by the LNS
    • C、By default, subscriber authentication occurs on the LNS
    • D、By default, subscriber authentication occurs on the LAC

    正确答案:A,C

  • 第18题:

    Which statement is true?()

    • A、A class’s finalize() method CANNOT be invoked explicitly.
    • B、super.finalize() is called implicitly by any overriding finalize() method.
    • C、The finalize() method for a given object is called no more than once by the garbage collector.
    • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

    正确答案:C

  • 第19题:

    多选题
    Which two statements are true with regard to policy ordering? ()(Choose two.)
    A

    The last policy is the default policy, which allows all traffic.

    B

    The order of policies is not important.

    C

    New policies are placed at the end of the policy list.

    D

    The insert command can be used to change the order.


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

  • 第20题:

    多选题
    Which two are true?()
    A

    A finalizer may NOT be invoked explicitly.

    B

    The finalize method declared in class Object takes no action.

    C

    super.finalize()is called implicitly by any over riding finalize method.

    D

    The finalize method for a given objec twill be called no more than once by the garbage collector.

    E

    The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.


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

  • 第21题:

    单选题
    Which statement is true?()
    A

    A class’s finalize() method CANNOT be invoked explicitly.

    B

    super.finalize() is called implicitly by any overriding finalize() method.

    C

    The finalize() method for a given object is called no more than once by the garbage collector.

    D

    The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.


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

  • 第22题:

    多选题
    Which two statements are true regarding L2TP? ()(Choose two.)
    A

    Tunnels are initiated by the LAC

    B

    Tunnels are initiated by the LNS

    C

    By default, subscriber authentication occurs on the LNS

    D

    By default, subscriber authentication occurs on the LAC


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

  • 第23题:

    多选题
    Which of the following statements are true?()
    A

    The equals() method determines if reference values refer to the same object.

    B

    The == operator determines if the contents and type of two separate objects match.

    C

    The equals() method returns true only when the contents of two objects match.

    D

    The class File overrides equals() to return true if the contents and type of two separate objects        match.


    正确答案: C,D
    解析: 严格来说这个问题的答案是不确定的,因为equals()方法是可以被重载的,但是按照java语言的本意来说:如果没有重写(override)新类的equals(),则该方法和 == 操作符一样在两个变量指向同一对象时返回真,但是java推荐的是使用equals()方法来判断两个对象的内容是否一样,就像String类的equals()方法所做的那样:判定两个String对象的内容是否相同,而==操作符返回true的唯一条件是两个变量指向同一对象。从这个意义上来说选择给定的答案。从更严格的意义来说正确答案应该只有D。

  • 第24题:

    多选题
    Which two statements are true regarding high-availability chassis clustering?()
    A

    A chassis cluster consists of two devices.

    B

    A chassis cluster consists of two or more devices.

    C

    Devices participating in a chassis cluster can be different models.

    D

    Devices participating in a chassis cluster must be the same models


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