

MCQOPTIONS
Saved Bookmarks
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] = 'i'; 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. | None of the mentioned |
Answer» B. 0 1 2 3 4 | |