Question
Which of the following statements is true?
Answer: Option C
Was this answer helpful ?
Option C is true because multiple VM flags can be used on a single invocation of a Java program.
Option A is incorrect because at runtime assertions are ignored by default.
Option B is incorrect because as of Java 1.4 you must add the argument -source 1.4 to the command
line if you want the compiler to compile assertion statements.
Option D is incorrect because the VM evaluates all assertion flags left to right.
Was this answer helpful ?
Submit Solution