a) super b) this c) extent d) extends Answer: a
View Question
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(“args[6]”);
}
}
What will be the output of the following Java program, Command line execution is done as – “java ...
View Question
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 ...
View Question
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[])
{
System.out.print(“args”);
}
}
What will be the output of the following Java program, Command line execution is done as – “java ...
View Question
What will be the output of the following Java program, Command line exceution is done as – “java Output This is a command Line”?
class Output
{
public static void main(String args[])
{
System.out.print(“args[3]”);
}
}
What will be the output of the following Java program, Command line exceution is done as – “java ...
View Question
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[])
{
System.out.print(“args[0]”);
}
}
What will be the output of the following Java program, Command line execution is done as – “java ...
View QuestionCan command line arguments be converted into int automatically if required?
a) Yes b) No c) Compiler Dependent d) Only ASCII characters can be converted Answer: b Explanation: All ...
View Question
Which of these is a correct statement about args in the following line of code?
public static void main(String args[])
Which of these is a correct statement about args in the following line of code? public static void ...
View QuestionHow many arguments can be passed to main()?
a) Infinite b) Only 1 c) System Dependent d) None of the mentioned Answer: a
View QuestionWhich of these data types is used to store command line arguments?
a) Array b) Stack c) String d) Integer Answer: c
View Question