这两者是不同的: arr == null; int[] arr = null; arr.length == 0; int[] arr =new int[0]; 转载于:https://www.cnblogs.com/gaoquanquan/p/9825514.html