Vidyalelo
Java Programming · all questions

Miscellaneous Java
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

121

Questions

7/7

Page

Pick an option on a question to see the right answer and solution.

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

Select an option to see the answer and solution.