In the following code, what is the output for list2? public…

 In the following code, what is the output for list2? public class Test { public static void main(String args) {           int list1 = {1, 2, 3};           int list2 = {1, 2, 3};           list2 = list1; list1 = 0; list1 = 1; list2 = 2;          for (int i = 0; i < list2.length; i++)                 System.out.print(list2 + " ");       }   }