Question: Question 9 (1 point) Saved What happens when you try to compile and run the following code? int[] b new int[5]; 5 is out of
Question 9 (1 point) Saved What happens when you try to compile and run the following code? int[] b new int[5]; 5 is out of bounds, so the program adds an extra element to b b[5] is set to 7. 5 is out of bounds for b, so it generates an exception 5 is out of bounds for b, so the computer ignores it. Question 7 (1 point) Saved What does the following code do? intl b - new int[5]: intll c b; b and c point to the same array, and all the elements of both are 3. . b and c point to the same array, and element 1 of that array is 3. b and c are arrays that both have the value 5 in them. b and c point to different arrays. cl1] is 3, and bl1] is 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
