Questão sobre Assertion

Fala galera, eu estava fazendo o Bonus Master Exam e vi essa questão:

[B]
Which are true? (Choose all that apply.)

[ ]A - It is not good practice to place assertions where you think execution should never reach.

[ ]B - It is sometimes apropriate to call getters and setters from assertions.

[ ]C - Use assertions to verify the arguments of private methods.

[ ]D - Assertions can be disabled for a particular class.

[ ]E - Never thrown an AssertionError explicity.[/B]

A resposta do mock é [B]C and E[/B].
Mas a minha é [B]C, D and E[/B].

Porque, como dito no livro de K&B é possível habilitar/desabilitar assertions para classes/pacotes.

Deixei passar algum conceito que não to lembrado?

Olá,

Olha, eu acho o seguinte. Assertions começam desabilitadas, então o que voce pode fazer é habilitar elas. Então, é possivel HABILITAR assertions definindo por classes…
PS: Que mock é esse?
[]'s

O mock é o Bonus master exam, ou seja, o 310-055 Master Exam 2

aqui segue uma citação do livro K&B 5:

[quote]
Disabling Assertions at Runtime
You must also know the command-line switches for disabling assertions,

java -da com.geeksanonymous.TestClass

or

java -disableassertions com.geeksanonymous.TestClass

Because assertions are disabled by default, using the disable switches might seem
unnecessary. Indeed, using the switches the way we do in the preceding example just
gives you the default behavior (in other words, you get the same result regardless
of whether you use the disabling switches). But?you can also selectively enable
and disable assertions in such a way that they’re enabled for some classes and/or
packages, and disabled for others, while a particular program is running.[/quote]

eu li ontem a parte do livro sobre assert e iria marcar sem dúvidas ‘C’,‘D’ e ‘E’.

seria Resposta Errada do gabarito ?

Opa, eu li a questão errada na epoca, as respostas certas na verdade são: C e D. Mesmo assim, eu ainda acho a E correta também.