CMS专题

单选题Which statement about static inner classes is true? ()AAn anonymous class can be declared as static.BA static inner class cannot be a static member of the outer class.CA static inner class does not require an instance of the enclosing class.DInstance m

题目
单选题
Which statement about static inner classes is true? ()
A

 An anonymous class can be declared as static.

B

 A static inner class cannot be a static member of the outer class.

C

 A static inner class does not require an instance of the enclosing class.

D

 Instance members of a static inner class can be referenced using the class name of the static inner class.

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

第1题:

Which statement about Remotely Triggered Black Hole (RTBH) is true?()

  • A、Route tagging is one of the techniques used by RTBH
  • B、It is used for BGP authentication
  • C、It cannot work with static routes
  • D、It uses extended ACLs for blocking attacks by creating a black hole
  • E、Before configuring RTBH LDP must be enabled on the interface

正确答案:A

第2题:

Which statement about static inner classes is true?()

  • A、 An anonymous class can be declared as static.
  • B、 A static inner class cannot be a static member of the outer class.
  • C、 A static inner class does not require an instance of the enclosing class.
  • D、 Instance members of a static inner class can be referenced using the class name of the static inner class.

正确答案:C

第3题:

Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()

A.Compilation will succeed for all classes and interfaces.

B.Compilation of class C will fail because of an error in line 2.

C.Compilation of class C will fail because of an error in line 6.

D.Compilation of class AImpl will fail because of an error in line 2


参考答案:C

第4题:

Which of the following is a TRUE statement about static routing vs. dynamic routing?()

  • A、Dynamic routing is created adhoc and static routing cannot be changed once implemented.
  • B、Static routing is hard-coded and requires significant administrative overhead for large networks.
  • C、Static routing requires little administrative overhead and dynamic routing requires significant administrative overhead.
  • D、Dynamic routing is the best solution for small networks and static routing is the best solution for large scale networks.

正确答案:B

第5题:

package foo; public class Outer (  public static class Inner (  )  )   Which statement is true? () 

  • A、 An instance of the Inner class can be constructed with “new Outer.Inner ()”
  • B、 An instance of the inner class cannot be constructed outside of package foo.
  • C、 An instance of the inner class can only be constructed from within the outer class.
  • D、 From within the package bar, an instance of the inner class can be constructed with “new inner()”

正确答案:A

第6题:

Which two statements are true?()

  • A、 An inner class may be declared as static.
  • B、 An anonymous inner class can be declared as public.
  • C、 An anonymous inner class can be declared as private.
  • D、 An anonymous inner class can extend an abstract class.
  • E、 An anonymous inner class can be declared as protected.

正确答案:A,D

第7题:

Which thefollowingstatements about static inner classes is true?()

  • A、 An anonymous class can be declared as static.
  • B、 A static inner class cannot be a static member of the outer class.
  • C、 A static inner class does not require an instance of the enclosing class.
  • D、 Instance member of a static inner class can be referenced using the class name of the staticinner class.

正确答案:C

第8题:

Which statement is true about the frequency of OSPF LSA transmissions?()

A.A

B.B

C.C

D.D


参考答案:D

第9题:

Which statement is true about IBGP routers? ()

  • A、They must be fully meshed
  • B、They can be in a different AS
  • C、They must be directly connected

正确答案:C

第10题:

Which the following two statements are true?()

  • A、 An inner class may be declared as static.
  • B、 An anonymous inner class can be declared as public.
  • C、 An anonymous inner class can be declared as private.
  • D、 An anonymous inner class can extend an abstract class.
  • E、 An anonymous inner class can be declared as protected.

正确答案:A,D

更多相关问题