SCJP程序员认证考试

单选题Which statement is true about assertion in the Java programming language?()AAssertion expressions should not contain side effects.BAssertion expression values can be any primitive type.CAssertion should be used for enforcing preconditions on public met

题目
单选题
Which statement is true about assertion in the Java programming language?()
A

 Assertion expressions should not contain side effects.

B

 Assertion expression values can be any primitive type.

C

 Assertion should be used for enforcing preconditions on public methods.

D

 An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

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

第1题:

Which statement is true about IBGP routers? ()

A. They must be fully meshed

B. They can be in a different AS

C . They do not need to be directly connected

D. They must be directly connected


参考答案:C

第2题:

//point X  public class foo (  public static void main (String[]args) throws Exception {  printWriter out = new PrintWriter (new  java.io.outputStreamWriter (System.out), true;  out.printIn(“Hello”);  }  )   Which statement at PointX on line 1 allows this code to compile and run?()  

  • A、 Import java.io.PrintWriter;
  • B、 Include java.io.PrintWriter;
  • C、 Import java.io.OutputStreamWriter;
  • D、 Include java.io.OutputStreamWriter;
  • E、 No statement is needed.

正确答案:A

第3题:

Which statement is true about terms in a policy?()

A. A single term can be applied to a protocol or interface, independent of the policy.

B. Once configured, terms within a policy cannot be reordered.

C. The name of a term is limited to five characters.

D. A from statement is optional in a term.


参考答案:D

第4题:

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

第5题:

Which statement is true about terms in a policy?()

  • A、A single term can be applied to a protocol or interface, independent of the policy
  • B、Every policy must contain at least one term
  • C、The name of a term is limited to five characters
  • D、Terms are optional

正确答案:B

第6题:

Which statement is true about assertion in the Java programming language?()  

  • A、 Assertion expressions should not contain side effects.
  • B、 Assertion expression values can be any primitive type.
  • C、 Assertion should be used for enforcing preconditions on public methods.
  • D、 An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

正确答案:A

第7题:

Which statement is true about terms in a policy?()

  • A、A single term can be applied to a protocol or interface, independent of the policy.
  • B、Once configured, terms within a policy cannot be reordered.
  • C、The name of a term is limited to five characters.
  • D、A from statement is optional in a term.

正确答案:D

第8题:

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

A.A

B.B

C.C

D.D


参考答案:D

第9题:

Which three statements are true about terms in a policy?()

  • A、The order of the terms in a policy is irrelevant.
  • B、The action is specified in a then statement.
  • C、Terms are optional in a policy.
  • D、The match condition can be identified with a from statement.
  • E、A from statement is mandatory in a term.

正确答案:B,C,D

第10题:

Which two statements are true about terms in a routing policy?()

  • A、A routing policy cannot have more than one term.
  • B、If a term does not contain a from statement, all routes match.
  • C、If a term does not contain a from statement, the Junos OS will not commit.
  • D、A then statement is not mandatory in a term.

正确答案:B,D

更多相关问题