1. interface A {

题目

1. interface A { public void aMethod(); }  2. interface B { public void bMethod(); }  3. interface C extends A,B { public void cMethod(); }  4. class D implements B {  5. public void bMethod() { }  6. }  7. class E extends D implements C {  8. public void aMethod() { }  9. public void bMethod() { }  10. public void cMethod() { }  11. }  What is the result?() 

  • A、 Compilation fails because of an error in line 3.
  • B、 Compilation fails because of an error in line 7.
  • C、 Compilation fails because of an error in line 9.
  • D、 If you define D e = new E(), then e.bMethod() invokes the version of bMethod()defined in Line 5.
  • E、 If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 5.
  • F、 If you define D e = (D)(new E()), then e.bMethod() invokes the version of bMethod() defined in Line 9.
参考答案和解析
正确答案:F
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

第2题:

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

第3题:

指定同/异步串口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

第4题:

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

第5题:

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

第6题:

A network administrator creates a layer 3 EtherChannel, bundling four interfaces into channel group 1. On what interface is the IP address configured?()

A.the port-channel 1 interface

B.the highest number member interface

C.all member interfaces

D.the lowest number member interface


参考答案:A

第7题:

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

第8题:

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

第9题:

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

第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

正确答案:C

更多相关问题