Discussion :: Java.lang Class
-
Select how you would start the program to cause it to print: Arg is 2public 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); } }
Answer : Option C
Explanation :
Arguments start at array element 0 so the fourth arguement must be 2 to produce the correct output.
Be The First To Comment