Vidyalelo
Java Programming · Q103

Miscellaneous Java

Programming · Java Programming · question 103

Q103

What will be the output of the following Java program, Command line execution is done as - java Output "This is a command Line"? class Output public static void main(String args[]) for (String arg : args) System.out.print(arg);

A.
This
B.
java Output This is a command Line
C.
This is a command Line
Answer
D.
Compilation Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board