Returns the value of the indexed component in the specified array object, as a
boolean
This method does not work for Array of Boolean objects:

package com.logicbig.example.array;
import java.lang.reflect.Array;
public class GetBooleanExample2 {
public static void main(String... args) {
Boolean[] ar = {true, false, true, true};
boolean b = Array.getBoolean(ar, 2);
System.out.println(b);
}
}
Output
java.lang.IllegalArgumentException: Argument is not an array of primitive type
at java.lang.reflect.Array.getBoolean (Native Method)
at com.logicbig.example.array.GetBooleanExample2.main (GetBooleanExample2.java:16)
at java.lang.reflect.Method.invoke (Method.java:566)
at java.lang.Thread.run (Thread.java:834)