in HashMap.Java file variable is declared like this
static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;
why not
static final int DEFAULT_INITIAL_CAPACITY = 16
is it due to performance or just to show that we are using this as the power of 2?
in HashMap.Java file variable is declared like this
static final int DEFAULT_INITIAL_CAPACITY = 1 << 4;
why not
static final int DEFAULT_INITIAL_CAPACITY = 16
is it due to performance or just to show that we are using this as the power of 2?