多选题
Which are capabilities of Java"s assertion mechanism? (Choose all that apply.)
A、
You can, at the command line, enable assertions for a specific class.
B、
You can, at the command line, disable assertions for a specific package.
C、
You can, at runtime, enable assertions for any version of Java.
D、
It"s considered appropriate to catch and handle an AssertionError programmatically.
E、
You can programmatically test whether assertions have been enabled without throwing an AssertionError.
【正确答案】
A、B、E
【答案解析】
提交答案
关闭