Question: Select all statements or expressions that would allow a Java program to display the length of array Infant_Age, as defined as follows: int Infant_Age[] =

Select all statements or expressions that would allow a Java program to display the length of array Infant_Age, as defined as follows: int Infant_Age[] = {1, 2, 3, 4}

(Check all that apply.)

a. System.out.print (Infant_Age.length)

b. len = Infant_Age.length; System.out.print(len);

c. for (int i=0; i<4; i++) {System.out.print (i)}

d. System.out.print (Infant_Age[4])

e. System.out.print (length.Infant_Age)

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!