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