Okay, so I have this piece of code tested and I found there isn\'t any exception thrown out.
public static void main(String[] args) {
    int[] list = {1,2}         
        
If first condition is false then it wont check for second condition as anything && F =F again it depends which bit wise operation you are doing . like in case of OR (||) if first condition is true (T) the it wont check for second condition as anything || T = T but if its false (F) then it will definitely check for second