Multiple choice

public class Myfile { public static void main (String[] args) { String biz = args[1]; String baz = args[2]; String rip = args[3]; System.out.println("Arg is " + rip); } } Select how you would start the program to cause it to print: Arg is 2

  1. java Myfile 222

  2. java Myfile 1 2 2 3 4

  3. java Myfile 1 3 2 2

  4. java Myfile 0 1 2 3

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Arguments start at array element 0 so the fourth arguement must be 2 to produce the correct output.