多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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
答案解析:
进入题库查看解析

微信扫一扫手机做题