Given the current directory is bigApp
, and the directory structure:
bigApp
|-- classes
|-- Cloned.class
And the file:.
public class Cloned { public static void main(String[] args) { System.out.println("classes"); assert(Integer.parseInt(args[0]) > 0); } }
Which will produce the output "classes" followed by an AssertionError? (Choose all that apply.).
F is the correct syntax for the java command.
A and G do not enable assertions (in G, the -ea is seen as the second argument).
B throws an ArrayIndexOutOfBoundsException.
C and E are invalid syntax.
D passes the assert test.