Given two files:
1. class One {//from w w w .jav a 2 s . c o m 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?
Choose all that apply.
B and F are correct.
class One will compile and issue a warning using the 1.3 flag.
class Two will compile using the 1.4 flag.