Question: the following code prints public class foo { public static void main ( String [ ] aaa ) { int aa [ ] = new

the following code prints
public class foo { public static void main(String [] aaa){ int aa[]= new int[4]; for (int i =0; i < aa.length; i++){ aa[i]=1; } System.out.println(aa); }}
Group of answer choices
none of the other answers is correct
{0,0,0,0}
{1,1,1,1}
{1,2,3,4}
there is a compile time error

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!