Java Programming - Assertions - Discussion
Discussion Forum : Assertions - Pointing out the correct statements (Q.No. 1)
1.
Which of the following statements is true?
Answer: Option
Explanation:
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.
Discussion:
1 comments Page 1 of 1.
Bommena karthik said:
7 years ago
What is assertion? what the use, when it is introduced & what is the use in real time?
Please give details about it.
Please give details about it.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers