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 publi

题目内容(请给出正确答案)

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
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
更多相关问题