Question: What does the following code fragment print? int[] a = { 1, 2, 3 }; int[] b = { 1, 2, 3 }; System.out.println(a ==

What does the following code fragment print?

int[] a = { 1, 2, 3 };

int[] b = { 1, 2, 3 };

System.out.println(a == b);

Step by Step Solution

3.50 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The code youve shown is written in Java and its comparing two arrays a and ... View full answer

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 Introduction To Programming Questions!