I am new to Java. So, I want to understand the working behind it.
int one_int = 1; byte one = 1; one <<= 7; one_int <<= 7; System.out.println(one_int); //Output is 128 System.out.println(one); //Output is -128
Why the output of left shift on int is 128 and on byte is -128?