1.

What is the output of this program?

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] = 'j';
System.out.print(array_variable[i] + "" );
i++;
}
}
}

A. i i i i i
B. 0 1 2 3 4
C. i j k l m
D. j j j j j
E. None of the mentioned
Answer» E. None of the mentioned


Discussion

No Comment Found

Related MCQs