please anyone explain me the following boolean array declaration in Java
boolean[][] exist = new boolean[(1 << 11)][1001];
please anyone explain me the following boolean array declaration in Java
boolean[][] exist = new boolean[(1 << 11)][1001];
the code is for allocating the array, The array is of size [2^11][1001] , array name is ‘exist’ and new keyword is used for memory allocation.
<< is a bitwise left shift operator 1<<a means 2^a numerically .