Assertions
© examsiri.com
Question : 5 of 6
Marks:
+1,
-0
Given two files:
And the four command-line invocations:
javac -source 1.3 One.java
javac -source 1.4 One.java
javac -source 1.3 Two.java
javac -source 1.4 Two.java
What is the result?
1. class One {
2.   public static void main(String[] args) {
3.    int assert = 0;
4.   }
5. }
1. class Two {
2.   public static void main(String[] args) {
3.    assert(false);
4.   }
5. }And the four command-line invocations:
javac -source 1.3 One.java
javac -source 1.4 One.java
javac -source 1.3 Two.java
javac -source 1.4 Two.java
What is the result?
Go to Question: