A good answer might be:The filled blanks are seen below. | |
Avoiding nullIn this example, any slot of the array might reference a String so all slots must be visited. To make the output look nice, slots that contain null are handled differently that those that refer to Strings.
(Actually, println() will print "null" when given
a null reference, so the | |
QUESTION 7:Inspect this code:
Is this program likely to work?
Click Here after you have answered the question
|