niusouti.com

10. interface Foo { int bar(); }  11. public class Sprite {  12. public int fubar( Foo foo) { return foo.bar(); }  13. public void testFoo() {  14. fubar(  15. // insert code here  16.);  17. }  18. }  Which code, inserted at line 15, allows the class Sp

题目

10. interface Foo { int bar(); }  11. public class Sprite {  12. public int fubar( Foo foo) { return foo.bar(); }  13. public void testFoo() {  14. fubar(  15. // insert code here  16.);  17. }  18. }  Which code, inserted at line 15, allows the class Sprite to compile?() 

  • A、 Foo { public int bar() { return 1; } }
  • B、 new Foo { public int bar() { return 1; } }
  • C、 newFoo() { public int bar(){return 1; } }
  • D、 new class Foo { public int bar() { return 1; } }

相似考题
更多“10. interface Foo&ens”相关问题
  • 第1题:

    In a chassis cluster with two SRX 5800 devices, the interface ge-13/0/0 belongs to which device?()

    A. This interface is a system-created interface.

    B. This interface belongs to node 0 of the cluster.

    C. This interface belongs to node 1 of the cluster.

    D. This interface will not exist because SRX 5800 devices have only 12 slots.


    参考答案:C

  • 第2题:

    Which command allows you to decode packets in JUNOS?()

    A.debug packet interface-name

    B.show interface extensive

    C.traceoptions interface-name

    D.monitor traffic interface interface-name


    参考答案:D

  • 第3题:

    Whichcommandshowsif an accesslistisassignedtoaninterface?()

    A.show ip interface [interface] access-lists

    B.show ip access-lists interface [interface]

    C.show ip interface [interface]

    D.show ip access-lists [interface]


    参考答案:C

  • 第4题:

    What interface is created when an FC Port Channel is created on a Cisco Unified Computing System?()

    • A、 An interface ’san-port-channel’ in NXOS
    • B、 An interface ’port-channel’ in NXOS
    • C、 An interface ’port-channel’ with ’mode fc’ configured
    • D、 An interface ’fc-port-channel’ in NXOS

    正确答案:A

  • 第5题:

    In a chassis cluster with two SRX 5800 devices, the interface ge-13/0/0 belongs to which device?()

    • A、This interface is a system-created interface.
    • B、This interface belongs to node 0 of the cluster.
    • C、This interface belongs to node 1 of the cluster.
    • D、This interface will not exist because SRX 5800 devices have only 12 slots.

    正确答案:C

  • 第6题:

    To troubleshoot interface problems, you can use both the disable command and the deactivate command. Which two statements are correct?()

    • A、If the interface is disabled, the logical unit will administratively shutdown.
    • B、If the interface is deactivated, the physical interface will administratively shutdown.
    • C、If the interface is deactivated, the interface configuration is ignored during commit.
    • D、If the interface is disabled, the logical unit configuration is ignored during commit.

    正确答案:B,C

  • 第7题:

    指定同/异步串口1和2的备份优先级分别为10和20的配置为()

    • A、backup interface 1 10; backup interface 2 20
    • B、backup interface serial 1 10; backup interface serial 2 20
    • C、backup interface 1 priority 10; backup interface 2 priority 20
    • D、backup interface serial 1 priority 10; backup interface serial 2 priority 20

    正确答案:D

  • 第8题:

    Which command shows if an access list is assigned to an interface?()

    • A、show ip interface [interface] access-lists
    • B、show ip access-lists interface [interface]
    • C、show ip interface [interface]
    • D、show ip access-lists [interface]

    正确答案:C

  • 第9题:

    单选题
    What is the first thing that happens when IPv6 is enabled on an interface on a host?()
    A

    A router solicitation is sent on that interface.

    B

    There is a duplicate address detection on the host interface.

    C

    The link local address is assigned on the host interface.

    D

    A neighbor redirect message is sent on the host interface.


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

  • 第10题:

    单选题
    Which command allows you to view interface usage details in real-time?()
    A

    user@host> debug interface interface-name

    B

    user@host> monitor usage interface-name

    C

    user@host> monitor interface interface-name

    D

    user@host> traceoptions interface interface-name


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

  • 第11题:

    多选题
    To troubleshoot interface problems, you can use both the disable command and the deactivate command. Which two statements are correct?()
    A

    If the interface is disabled, the logical unit will administratively shutdown.

    B

    If the interface is deactivated, the physical interface will administratively shutdown.

    C

    If the interface is deactivated, the interface configuration is ignored during commit.

    D

    If the interface is disabled, the logical unit configuration is ignored during commit.


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

  • 第12题:

    单选题
    public interface A {  String DEFAULT_GREETING = “Hello World”;  public void method1();  }  A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?()
    A

     public interface B extends A {}

    B

     public interface B implements A {}

    C

     public interface B instanceOf A {}

    D

     public interface B inheritsFrom A {}


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

  • 第13题:

    In a JSRP cluster with two J6350 routers, the interface ge-7/0/0 belongs to which device? ()

    A. This interface is a system-created interface.

    B. This interface belongs to NODE0 of the cluster.

    C. This interface belongs to NODE1 of the cluster.

    D. This interface will not exist because J6350 routers have only six slots.


    参考答案:C

  • 第14题:

    Which command shows if an access list is assigned to an interface?()

    A. show ip interface [interface] access-lists

    B. show ip access-lists interface [interface]

    C. show ip interface [interface]

    D. show ip access-lists [interface]


    参考答案:C

  • 第15题:

    Which of the following is not an essential prerequisite for AutoQoS to be correctly applied to an interface()

    • A、The interface must be configured as a Multilink PPP interface.
    • B、The correct bandwidth should be configured on the interface.
    • C、A QoS policy must not be currently attached to the interface.
    • D、CEF must be enable
    • E、AutoQoS must be enabled globally before it can be enabled on the interface.
    • F、An IP address must be configured on the interface if its speed is equal to or less than 768 kbps.

    正确答案:A,E

  • 第16题:

    public interface A {  String DEFAULT_GREETING = “Hello World”;  public void method1();  }  A programmer wants to create an interface called B that has A as its parent. Which interface declaration is correct?() 

    • A、 public interface B extends A {}
    • B、 public interface B implements A {}
    • C、 public interface B instanceOf A {}
    • D、 public interface B inheritsFrom A {}

    正确答案:A

  • 第17题:

    Which command allows you to view interface usage details in real-time?()

    • A、user@host> debug interface interface-name
    • B、user@host> monitor usage interface-name
    • C、user@host> monitor interface interface-name
    • D、user@host> traceoptions interface interface-name

    正确答案:C

  • 第18题:

    Overlay Transport Virtualization (OTV) join interface is used to source the OTV encapsulated traffic and send it to the Layer 3 domain of the data center network. Which statements are true about OTV join interface? ()

    • A、 Join interface is a Layer 3 entity, and with the Cisco NX-OS release 6.0, it can only be defined as a physical interface, physical subinterface, Layer 3 port channel, or Layer 3 port channel subinterface.
    • B、 A single join interface can be defined and associated with a given OTV overlay.
    • C、 Multiple overlays can also share the same join interface.
    • D、 Join interface can be a loopback interface.
    • E、 The join interface is a Layer 3 entity that can be defined as a physical interface but not as a logical one.

    正确答案:A,B,C

  • 第19题:

    Spanning Tree Protocol calculates path cost based on which of these? ()

    • A、 interface bandwidth
    • B、 interface delay
    • C、 interface bandwidth and delay
    • D、 hop count
    • E、 bridge priority

    正确答案:A

  • 第20题:

    单选题
    Which command allows you to decode packets in JUNOS?()
    A

    debug packet interface-name

    B

    show interface extensive

    C

    traceoptions interface-name

    D

    monitor traffic interface interface-name


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

  • 第21题:

    单选题
    In a Bridged 1483 network, which CLI commands are used to baseline an IP interface on ATM 6/1.1 and display recent IP transmit and receive statistics?()
    A

    clear ip interface atm 6/1.1 show ip interface atm 6/1.1

    B

    baseline atm interface atm 6/1.1 show ip interface atm 6/1.1

    C

    clear ip interface atm 6/1.1 show ip interface atm 6/1.1 delta

    D

    baseline atm interface atm 6/1.1 show ip interface atm 6/1.1 delta


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

  • 第22题:

    多选题
    Overlay Transport Virtualization (OTV) join interface is used to source the OTV encapsulated traffic and send it to the Layer 3 domain of the data center network. Which statements are true about OTV join interface? ()
    A

    Join interface is a Layer 3 entity, and with the Cisco NX-OS release 6.0, it can only be defined as a physical interface, physical subinterface, Layer 3 port channel, or Layer 3 port channel subinterface.

    B

    A single join interface can be defined and associated with a given OTV overlay.

    C

    Multiple overlays can also share the same join interface.

    D

    Join interface can be a loopback interface.

    E

    The join interface is a Layer 3 entity that can be defined as a physical interface but not as a logical one.


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

  • 第23题:

    单选题
    In a chassis cluster with two SRX 5800 devices, the interface ge-13/0/0 belongs to which device?()
    A

    This interface is a system-created interface.

    B

    This interface belongs to node 0 of the cluster.

    C

    This interface belongs to node 1 of the cluster.

    D

    This interface will not exist because SRX 5800 devices have only 12 slots.


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

  • 第24题:

    单选题
    What interface is created when an FC Port Channel is created on a Cisco Unified Computing System?()
    A

     An interface ’san-port-channel’ in NXOS

    B

     An interface ’port-channel’ in NXOS

    C

     An interface ’port-channel’ with ’mode fc’ configured

    D

     An interface ’fc-port-channel’ in NXOS


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