1 package test2; 2 3 public class ArrayAndNull { test()4 public int[] test() { 5 int[] arr = { 1, 2 }; 6 arr = null; 7 return arr; 8 } 9 } 10