Question: How many elements in memory does the array declaration create? int [ ] yearsArr = new int [ 4 ] ; yearsArr [ 0 ]

How many elements in memory does the array declaration create?
int[] yearsArr = new int[4];
yearsArr[0]=1999;
yearsArr[1]=2012;
yearsArr[2]=2025;
Group of answer choices
1
2
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 Programming Questions!