explanation needed...

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.

i think u r right…but please explain how you come to this point…@acodebreaker2

<< is a bitwise left shift operator 1<<a means 2^a numerically .

got it… thanks a lot for helping @acodebreaker2

@dpnkr also you can read more about arrays in java here :-

https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html