Multiple Choice Question

Quiz Guidelines

 

QID: 
478
Question: 

Consider the following class:

public class ArgsPrinter{   
public static void main(String args){      
for(int i=0; i<3; i++){         
System.out.print(args+" ");     
 }   
} 
}

What will be printed when the above class is run using the following command line: java ArgsPrinter 1 2 3 4

Select 1 option 

A. 1 2 3 
B. ArgsPrinter 1 2 
C. java ArgsPrinter 1 2 
D. 1 1 1 
E. None of these. 

Q&A Set: