Java.lang Class

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

A java Myfile 1 2 2 3 4

B java Myfile 222

C java Myfile 1 3 2 2

D java Myfile 0 1 2 3

ANS:A - java Myfile 222

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

img not found

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.