-
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++;
}
}
}
-
- i i i i i
- 0 1 2 3 4
- i j k l m
- j j j j j
- None of the mentioned
Correct Option: D
output: j j j j j