adplus-dvertising
frame-decoration

Question

What is the output of this program, Command line execution is done as – “java Output command Line 10 A b 4 N”?
    class Output 
    {
        public static void main(String args[]) 
        {
            System.out.print("(int)args[2] * 2");
        }
    }

a.

java

b.

10

c.

20

d.

b

Posted under Java Programming

Answer: (c).20

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 command Line 10 A b 4 N”?