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);
}
}
}
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
D. Compilation Error
Answer: Option C

Join The Discussion