import java.util.Arrays;
public class Main {
public static void main(String[] argv) throws Exception {
boolean[] bArr1 = new boolean[] { true, false };
boolean[] bArr2 = new boolean[] { true, false };
boolean b = Arrays.equals(bArr1, null); // false
b = Arrays.equals(bArr1, bArr2); // true
}
}