Originally posted by Bert Bates:
Can you tell me where you are seeing a different answer?
Master exam II. I searched again and this is the complete question and and answer.
What is the result?
A. 0
B. null
C. Compiler error line 5
D. Compiler error line 6
E. Compiler error line 7
F. An exception is thrown at runtime
But the weird thing is the answer:
D is correct. It is a legal way to create an array of four integers, named 'array'.
A,B,C,E, and F are invalid attemps to declare and intialize an array, none of them will compile
I was really surprised when I read the answer. Where's the array named 'array'? The second statement doesn't make sense either. I wonder if I'm the only one who got this error.
BTW, I got 88% and 81% in master exam 1 and 2. What does your experience tell you with these scores ?
cheers