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[]) 
    {
        char array_variable [] = new char[10];
  for (int i = 0; i < 10; ++i) 
        {
            array_variable[i] = 'i';
            System.out.print(array_variable[i] + "");
        }
    } 
}

Answer & Solution
Correct Answer: Option D
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.