O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

5.24 Assuming assertions are enabled, which of these assertion statements will throw an error?

Select the two correct answers.

  1. assert true : true;

  2. assert true : false;

  3. assert false : true;

  4. assert false : false;

5.25 Which of the following are valid runtime options?

Select the two correct answers.

  1. -ae

  2. -enableassertions

  3. -source 1.4

  4. -disablesystemassertions

  5. -dea

5.26 What is the class name of the exception thrown by an assertion statement?

Select the one correct answer.

  1. Depends on the assertion statement.

  2. FailedAssertion

  3. AssertionException

  4. RuntimeException

  5. AssertionError

  6. Error

5.27 What can cause an assertion statement to be ignored?

Select the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required