adplus-dvertising
frame-decoration

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");
        }
    }

a.

This

b.

java Output This is a command Line

c.

This is a command Line

d.

Compilation Error

Posted under Java Programming

Answer: (c).This is a command Line

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program, Command line execution is done as – “java Output This is a command Line”?