Open In App

Array setBoolean() Method in Java with Examples

The java.lang.reflect.Array.setBoolean() method is an inbuilt method used to set a specified Boolean value to a specified index of a given object array.



Syntax:

Array.setBoolean(Object []array, int index, boolean value)

Parameter: This method takes three parameters:



Return type: This is a void type method and doesn’t returns any value. The update reflects upon the Object array passed as the argument.

Exception: This method throws following exceptions:

Article Tags :