I watched one of the open source projects on github, and I found the following line of code in Java,
static byte[] byteArray = new byte[1 << 11];
here we know that 1 <11 is nothing but 2048, so I can directly initialize the array by specifying its length = 2048 as follows:
static byte[] byteArray = new byte[2048];
then why is it written as 1 <11 instead of 2048.
java
Mjp
source share