Under which of the following conditions will evaluating this boolean expression
cause an ArrayIndexOutOfBoundsException n represents the length of a?
((i <= n) && (a[i] == 0)) || (((i >= n) && (a[i-1] == 0)))
I. i > n
II. i = n
III. i < n
I only
II only
I and II only
II and III only
None of the above cause ArrayIndexOutOfBoundsException
couple more just the ones im stuck on D:
cause an ArrayIndexOutOfBoundsException n represents the length of a?
((i <= n) && (a[i] == 0)) || (((i >= n) && (a[i-1] == 0)))
I. i > n
II. i = n
III. i < n
I only
II only
I and II only
II and III only
None of the above cause ArrayIndexOutOfBoundsException
couple more just the ones im stuck on D: