|
int[] scores = new double[25]; A good answer might be:
| |
More on Array DeclarationLacking any other information, the slots of an array are initialized to the default value for their type, so each slot of a numeric array is initialized to zero. Of course, the program can explicity place values into slots after the array has been constructed:
(You may wish to copy-paste-and run the above program using NotePad and the JDK.) | |
QUESTION 7:What does the above program write to the monitor? Click Here after you have answered the question |