Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Java 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”);
}
}

What will be the output of the following Java 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

Answer: c

Join The Discussion