Card 32 / 37: public class Test { public static void main(String[] args) { int numbers[]; numbers = new int[4]; numbers[0] = 2; numbers[3] = 3; numbers = new int[8]; numbers[4] = 2; numbers[7] = 3; for( int x : numbers) System.out.print(x); } } What is output ?
A)
20032003
B)
An exception is thrown at runtime
C)
00002003
D)
Compilation fails
Answer:
C) 00002003
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|