1.

Which of the following statements is true?

A. It is sometimes good practice to throw an AssertionError explicitly.
B. Private getter() and setter() methods should not use assertions to verify arguments.
C. If an AssertionError is thrown in a try-catch block, the finally block will be bypassed.
D. It is proper to handle assertion statement failures using a catch (AssertionException ae) block.
Answer» B. Private getter() and setter() methods should not use assertions to verify arguments.


Discussion

No Comment Found