ExamVeda
Login
Home
This question belongs to Java Program Array
Array
?

What will be the output of the following Java code?
class array_output 
{
    public static void main(String args[]) 
    {
        int array_variable [] = new int[10];
  for (int i = 0; i < 10; ++i) 
        {
            array_variable[i] = i;
            System.out.print(array_variable[i] + " ");
            i++;
        }
    } 
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.