Discussion Forum : Command Line Arguments
Question -


What is the output of this program, Command line execution is done as -



"java Output This is a command Line"?


class Output {
public static void main(String args[]) {
System.out.print("args");
}
}
Options:
A .  This
B .  java Output This is a command Line
C .  This is a command Line
D .  Compilation Error
Answer: Option C

None.
Output:
$ javac Output.javac
java Output This is a command Line
This is a command Line



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *