What Will Be The Output Of The Following Java Program Command #278
What will be the output of the following Java program, Command line execution is done as – java Output “This is a command Line”?</p> <pre><code class="language-java" line="1"> class Output { public static void main(String args[]) { for (String arg : args) { System.out.print(arg); } } }</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Classes Methods - Java Command Line Arguments - Quiz No.1.
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); } } }
This
java Output This is a command Line
This is a command Line
Compilation Error