Question: Which line contains the first compile error in this code? 1 . int [ 1 0 ] arr = new int [ 1 0 ]

Which line contains the first compile error in this code?
1. int[10] arr = new int[10];
2. int sum =0;
3. for(int i =0; i < arr.length; i++){
4. sum += arr[i];
5.}
Group of answer choices
2
1
3
4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!