Difference boolean[] b = {false} vs. boolean b = false? [closed]

boolean[] cameraPermissionGranted = {false}; create a boolean array, it’s first element is false.

boolean cameraPermissionGranted = false; create a boolean variable, it’s value is false.

Browse More Popular Posts

Leave a Comment