Java Programming Language MCQ Java Language Fundamental
⚠ Report ✓ Question Verified Copy Link
public class CommandArgsTwo { public static void main(String [] argh) { int x; x = argh.length; for (int y = 1; y <= x; y++) { System.out.print(" " + argh[y]); } } }
and the command-line invocation is
> java CommandArgsTwo 1 2 3
Learn More MCQ Questions from Java Programming Language MCQ Java Language Fundamental