array == null || array .length == 0的区别 int[] array = new sequence[0];是分配了地址空间,但是里面没有存储东西 int[] array == null; 没有分配地址空间,就是空的。