Which of the following statements is true?

Loading

โœช Choose the correct option.

Which of the following statements is true?

A. In an assert statement, the expression after the colon ( : ) can be any Java expression.
B. If a switch block has no default, adding an assert default is considered appropriate.
C. NULL
D. It is appropriate to handle assertion failures using a catch clause.

Leave a Comment